Newer
Older
dmpopidor / app / views / user_mailer / sharing_notification.html.erb
@briley briley on 22 Nov 2017 775 bytes Org Admin provide feedback
<%
  tool_name = Rails.configuration.branding[:application][:name]
  user_email = @user.email
  link = url_for(action: 'show', controller: 'plans', id: @role.plan.id)
%>
<% FastGettext.with_locale FastGettext.default_locale do %>
  <p>
    <%= _('Hello %{user_email}') %{ :user_email => user_email } %>
  </p>
  <p>
    <%= _('A colleague has invited you to contribute to their Data Management Plan in %{tool_name}') %{ :tool_name => tool_name }%>
  </p>
  <p>
    <%= raw(_('%{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>
  <%= render partial: 'email_signature' %>
<% end %>