Newer
Older
dmpopidor / app / views / user_mailer / new_comment.html.erb
@briley briley on 14 Nov 2017 1 KB Fixes for emails
<%
  tool_name = Rails.configuration.branding[:application][:name]
  commenter_name = @commenter.name
  plan_title = @plan.title
  user_name = @plan.owner.name
  helpdesk_email = Rails.configuration.branding[:organisation][:helpdesk_email]
  contact_us = Rails.configuration.branding[:organisation][:contact_us_url] || contact_us_url
  email_subject = _('Query or feedback related to %{tool_name}') %{ :tool_name => tool_name }
%>
<% FastGettext.with_locale FastGettext.default_locale do %>
  <p>
    <%= _('Hello %{user_name}') %{ :user_name => user_name } %>
  </p>
  <p>
    <%= _('%{commenter_name} has commented on the plan %{plan_title}. To view the comments, '\
    'please visit the My Dashboard page in %{tool_name} and open your plan.') %{ :plan_title => plan_title,
    :commenter_name => commenter_name, :tool_name => tool_name } %>
  </p>
  <p>
    <%= _('All the best') %>
    <br />
    <%= _('The %{tool_name} team') %{:tool_name => tool_name} %>
  </p>
  <p>
    <%= _('You may change your notification preferences on your profile page.') %>&nbsp;<%= _('Please do not reply to this email.') %>&nbsp;<%= raw(_('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_url => link_to(contact_us, contact_us) }) %>
  </p>
<% end %>