1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/views/users_mailer/notify_user_account_created.html.erb
2020-05-25 12:54:19 +02:00

54 lines
1.3 KiB
Plaintext

<style type="text/css">
.token {
margin: auto;
width: 16em;
background-color: rgba(230, 208, 137, 0.49);
border-color: #d1d1d1;
border-radius: 0.2em;
padding: 2em;
text-align: center;
vertical-align: middle;
font-weight: bold;
}
</style>
<p><%= t('.body.hello', NAME: @user.profile.full_name) %> </p>
<p><%= _t('.body.intro',
{
GENDER: Setting.get('name_genre'),
FABLAB: Setting.get('fablab_name')
})
# messageFormat
%> <%= link_to URI(root_url).host, root_url %>.
</p>
<% active_provider = AuthProvider.active %>
<% if active_provider.providable_type == DatabaseProvider.name %>
<p><%= t('.body.connection_parameters') %></p>
<p><%= t('.body.account_name') %> <b><%= @user.email %></b></p>
<p><%= t('.body.password') %> <b><%= @generated_password %></b></p>
<p><%= t('.body.temporary_password') %> <%= t('.body.keep_advantages') %></p>
<% else %>
<% url_path = File.join(root_url, 'sso-redirect') %>
<p>
<%= t('.body.to_use_platform') %>
<a href="<%= "#{url_path}?auth_token=#{@user.auth_token}"%>" target="_blank">
<%= t('.body.logon_or_login', PROVIDER: active_provider.name )%>
</a>
</p>
<p><%= t('.body.token_if_link_problem') %></p>
<div class="token">
<%= @user.auth_token %>
</div>
<% end %>