Newer
Older
dmpopidor / app / views / user_mailer / feedback_notification.html.erb
@Gavin Morrice Gavin Morrice on 28 Aug 2018 924 bytes Issue 532 (#1847)
<% FastGettext.with_locale FastGettext.default_locale do %>
  <%
    recipient_name = @recipient.name(false)
    requestor_name = @user.name(false)
    plan_name = @plan.title
    tool_name = Rails.configuration.branding[:application][:name]
  %>

  <p><%= _('Hello %{user_name},') % {user_name: recipient_name} %></p>

  <p>
    <%= sanitize _(%Q{%{requestor} has requested feedback on a plan %{link_html}. To add comments, please visit the 'Plans' page under the Admin menu in %{application_name} and open the plan.}) % {
    requestor: requestor_name,
    plan_name: plan_name,
    application_name: tool_name,
    allow_change_prefs: false,
    link_html: link_to(plan_name, plan_url(@plan))
    } %>
  </p>

  <p>
    Alternatively, you can click the link below:<br>
    <%= link_to plan_url(@plan), plan_url(@plan) %>
  </p>

  <%= render partial: 'email_signature', locals: { allow_change_prefs: false } %>
<% end %>