-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DCC Feature #345 - Allow Orgs to set a different Help Desk Email Address
from the default address. Feature asked for by DCC https://github.com/DigitalCurationCentre/DMPonline-Service/issues/345 Changes: - added helpdesk_email attribute to Org model with migration. - added a Help Desk email field to app/views/orgs/_profile_form.html.erb. - added a method helpdesk_mail(org = nil) to app/helpers/mailer_helper.rb. - added a variable @helpdesk_email to each method in app/mailers/user_mailer.rb. - updated app/views/user_mailer/_email_signature.html.erb to accept @helpdesk_mail variable. - altered helpdesk_email variable in Devise email fragments to use Org helpdesk_email if present.
- Loading branch information
John Pinto
committed
Apr 5, 2022
1 parent
235624d
commit 0285039
Showing
10 changed files
with
115 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddHelpdeskEmailToOrgs < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :orgs, :helpdesk_email, :string | ||
end | ||
end |
Oops, something went wrong.