1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/views/notifications_mailer/notify_admin_profile_complete.html.erb
2019-06-12 15:49:35 +02:00

15 lines
732 B
Plaintext

<% provider = AuthProvider.from_strategy_name(@attached_object.provider) %>
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
<% if provider.name == AuthProvider::SimpleAuthProvider.new.name %>
<p><%= t('.body.account_completed') %>
<%= "#{@attached_object&.profile&.full_name || t('api.notifications.deleted_user')}" %> &lt;<%= @attached_object.email%>&gt;.</p>
<% else %>
<p><%= t('.body.imported_account_completed', PROVIDER: provider.name) %>
<%= "#{@attached_object&.profile&.full_name || t('api.notifications.deleted_user')}" %> &lt;<%= @attached_object.email%>&gt;.</p>
<% end %>
<% if @attached_object.uid %>
<p><%= t('.body.provider_id', UID: @attached_object.uid) %></p>
<% end %>