mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
fix profile complete mail template for non imported users
This commit is contained in:
parent
41eef71ead
commit
5ce6d4486e
@ -1,7 +1,14 @@
|
|||||||
<% provider = AuthProvider.from_strategy_name(@attached_object.provider) %>
|
<% provider = AuthProvider.from_strategy_name(@attached_object.provider) %>
|
||||||
<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>
|
<%= 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}" %> <<%= @attached_object.email%>>.</p>
|
<%= "#{@attached_object.profile.full_name}" %> <<%= @attached_object.email%>>.</p>
|
||||||
|
<% else %>
|
||||||
|
<p><%= t('.body.imported_account_completed', PROVIDER: provider.name) %>
|
||||||
|
<%= "#{@attached_object.profile.full_name}" %> <<%= @attached_object.email%>>.</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 %>
|
@ -228,7 +228,8 @@ en:
|
|||||||
notify_admin_profile_complete:
|
notify_admin_profile_complete:
|
||||||
subject: "An imported account has completed its profile"
|
subject: "An imported account has completed its profile"
|
||||||
body:
|
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:"
|
provider_id: "its provider ID is:"
|
||||||
|
|
||||||
notify_admin_abuse_reported:
|
notify_admin_abuse_reported:
|
||||||
|
@ -228,7 +228,8 @@ fr:
|
|||||||
notify_admin_profile_complete:
|
notify_admin_profile_complete:
|
||||||
subject: "Un compte importé a complété ses informations"
|
subject: "Un compte importé a complété ses informations"
|
||||||
body:
|
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}"
|
provider_id: "Son identifiant fournisseur est %{UID}"
|
||||||
|
|
||||||
notify_admin_abuse_reported:
|
notify_admin_abuse_reported:
|
||||||
|
@ -228,7 +228,8 @@ pt:
|
|||||||
notify_admin_profile_complete:
|
notify_admin_profile_complete:
|
||||||
subject: "Uma conta importada teve o perfil completado"
|
subject: "Uma conta importada teve o perfil completado"
|
||||||
body:
|
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 é:"
|
provider_id: "Seu ID de provedor é:"
|
||||||
|
|
||||||
notify_admin_abuse_reported:
|
notify_admin_abuse_reported:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user