-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7350fb1
commit e8118bf
Showing
2 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
app/views/branded/devise/mailer/invitation_instructions.html.erb
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,46 @@ | ||
<% | ||
tool_name = ApplicationService.application_name | ||
link = plans_url() | ||
contact_us = (Rails.configuration.x.organisation.contact_us_url || contact_us_url) | ||
email_subject = _('Query or feedback related to %{tool_name}') %{ :tool_name => tool_name } | ||
user_name = User.find_by(email: @resource.email).nil? ? @resource.email : User.find_by(email: @resource.email).name(false) | ||
inviter = @resource.invited_by | ||
inviter_name = inviter.name | ||
helpdesk_email = inviter.org&.helpdesk_email || | ||
Rails.configuration.x.organisation.helpdesk_email | ||
%> | ||
<% I18n.with_locale I18n.default_locale do %> | ||
<p> | ||
|
||
|
||
</p> | ||
<p> | ||
<%= _("Hello %{user_name}") %{ :user_name => user_name } %> | ||
</p> | ||
<p> | ||
<%= _("Your colleague %{inviter_name} has invited you to contribute to "\ | ||
" their Data Management Plan in %{tool_name}") % { | ||
tool_name: tool_name, | ||
inviter_name: inviter_name | ||
} %> | ||
</p> | ||
<p> | ||
<%= sanitize(_('%{click_here} to accept the invitation, (or copy %{link} into your browser). If you don\'t want to accept the invitation, please ignore this email.') % { | ||
click_here: link_to(_('Click here'), link), link: link }) | ||
%> | ||
</p> | ||
<p> | ||
<%= _('All the best') %> | ||
<br /> | ||
The DMPonline.be team | ||
</p> | ||
<p> | ||
<%= _('You may change your notification preferences on your profile page. ') %> | ||
<%= _('Please do not reply to this email.') %> | ||
<%= sanitize(_('If you have any questions or need help, please contact us at %{helpdesk_email} or visit %{contact_us}') % { | ||
helpdesk_email: mail_to(helpdesk_email, helpdesk_email, | ||
subject: email_subject), | ||
contact_us: link_to(contact_us, contact_us) | ||
}) %> | ||
</p> | ||
<% end %> |
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