1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fix profile complete mail template for non imported users

This commit is contained in:
Sylvain 2017-10-11 11:56:43 +02:00
parent 41eef71ead
commit 5ce6d4486e
4 changed files with 15 additions and 5 deletions

View File

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

View File

@ -228,7 +228,8 @@ en:
notify_admin_profile_complete:
subject: "An imported account has completed its profile"
body:
account_completed: "A previously imported user account via %{PROVIDER} has completed its profile:"
account_completed: "An user account has completed its profile:"
imported_account_completed: "An user account, previously imported through %{PROVIDER}, has completed its profile:"
provider_id: "its provider ID is:"
notify_admin_abuse_reported:

View File

@ -228,7 +228,8 @@ fr:
notify_admin_profile_complete:
subject: "Un compte importé a complété ses informations"
body:
account_completed: "Un compte utilisateur précédemment importé via %{PROVIDER} vient de compléter ses informations de profil :"
account_completed: "Un compte utilisateur vient de compléter ses informations de profil :"
imported_account_completed: "Un compte utilisateur précédemment importé via %{PROVIDER} vient de compléter ses informations de profil :"
provider_id: "Son identifiant fournisseur est %{UID}"
notify_admin_abuse_reported:

View File

@ -228,7 +228,8 @@ pt:
notify_admin_profile_complete:
subject: "Uma conta importada teve o perfil completado"
body:
account_completed: "Uma conta de usuário importada anteriormente via %{PROVIDER} completou seu perfil:"
account_completed: "Uma conta de usuário completou seu perfil:"
imported_account_completed: "Uma conta de usuário importada anteriormente via %{PROVIDER} completou seu perfil:"
provider_id: "Seu ID de provedor é:"
notify_admin_abuse_reported: