2016-03-23 18:39:41 +01:00
|
|
|
<% provider = AuthProvider.from_strategy_name(@attached_object.provider) %>
|
|
|
|
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
|
|
|
|
2017-10-11 11:56:43 +02:00
|
|
|
<% if provider.name == AuthProvider::SimpleAuthProvider.new.name %>
|
|
|
|
<p><%= t('.body.account_completed') %>
|
2019-06-12 15:49:35 +02:00
|
|
|
<%= "#{@attached_object&.profile&.full_name || t('api.notifications.deleted_user')}" %> <<%= @attached_object.email%>>.</p>
|
2017-10-11 11:56:43 +02:00
|
|
|
<% else %>
|
|
|
|
<p><%= t('.body.imported_account_completed', PROVIDER: provider.name) %>
|
2019-06-12 15:49:35 +02:00
|
|
|
<%= "#{@attached_object&.profile&.full_name || t('api.notifications.deleted_user')}" %> <<%= @attached_object.email%>>.</p>
|
2017-10-11 11:56:43 +02:00
|
|
|
<% end %>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2017-10-11 11:56:43 +02:00
|
|
|
<% if @attached_object.uid %>
|
|
|
|
<p><%= t('.body.provider_id', UID: @attached_object.uid) %></p>
|
2019-06-12 15:49:35 +02:00
|
|
|
<% end %>
|