<% FastGettext.with_locale FastGettext.default_locale do %>
<%
access_level = "read-only"
permissions = "This means you can read the plan and leave comments."
if @role.editor?
access_level = "editor"
permissions = "This means you can write and edit the plan in a collaborative manner."
end
if @role.administrator?
access_level = "co-owner"
permissions = "This means you can write and edit the plan in a collaborative manner. You can also grant rights to other collaborators."
end
%>
<p><%= _('Hello ') %><%= @role.user.name %>,</p>
<p><%= _('Your permissions relating to ') %> "<%= link_to @role.plan.title, url_for(action: 'show', controller: 'plans', id: @role.plan.id, locale: FastGettext.default_locale) %>" <%= _(' have been changed by') %><%="#{@current_user.name(false)}. " %><%= _('You now have ') %><%= access_level %><%= _(' access. ') %><%= permissions %></p>
<p><%=_('All the best,')%><br /><%= _('The ')%><%= Rails.configuration.branding[:application][:name] %><%=_(' team')%>.</p>
<% end %>