Newer
Older
dmpopidor / app / views / user_mailer / sharing_notification.html.erb
@xsrust xsrust on 31 Mar 2017 405 bytes updated mailers to use new schema
<p><%= _('Hello') %> <%= @role.user.name %></p>

<%
access_level = "read-only"
if @role.editor?
	access_level = "editor"
elsif @role.administrator?
	access_level = "co-owner"
end
%>

<p><%= _('You have been given ') %><%= access_level %><%= _(' access to') %><%= link_to @role.plan.title, url_for(action: 'show', controller: 'plans', id: @role.plan.id, locale: I18n.default_locale) %>".</p>