-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinvite_admin.html.erb
19 lines (14 loc) · 1.17 KB
/
invite_admin.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<% scope = Decidim.config.devise_custom_scope.(@organization) %>
<p class="email-greeting"><%= t("devise.mailer.invitation_instructions.hello", scope: scope, email: @resource.name) %></p>
<p class="email-instructions">
<% if @resource.invited_by.present? %>
<%= t("devise.mailer.invitation_instructions.invited_you_as_admin", scope: scope, invited_by: @resource.invited_by.name, application: @resource.organization.name) %>
<% else %>
<%= t("devise.mailer.invitation_instructions.someone_invited_you_as_admin", scope: scope, application: @resource.organization.name) %>
<% end %>
</p>
<p class="email-button email-button__cta"><%= link_to t("devise.mailer.invitation_instructions.accept", scope: scope), accept_invitation_url(@resource, invitation_token: @token, invite_redirect: decidim_admin.root_path, host: @resource.organization.host) %></p>
<% if @resource.invitation_due_at %>
<p class="email-small"><%= t("devise.mailer.invitation_instructions.accept_until", scope: scope, due_date: l(@resource.invitation_due_at, format: :long)) %></p>
<% end %>
<p class="email-small email-closing"><%= t("devise.mailer.invitation_instructions.ignore", scope: scope).html_safe %></p>