1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-13 23:48:55 +01:00
fab-manager/app/views/users_mailer/notify_user_account_created.html.erb

54 lines
1.3 KiB
Plaintext
Raw Normal View History

2016-03-23 18:39:41 +01:00
<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',
{
2020-05-13 15:02:03 +02:00
GENDER: Setting.get('name_genre'),
FABLAB: Setting.get('fablab_name')
2016-03-23 18:39:41 +01:00
})
# 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') %>
2016-03-23 18:39:41 +01:00
<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>
2016-03-23 18:39:41 +01:00
</p>
<p><%= t('.body.token_if_link_problem') %></p>
<div class="token">
<%= @user.auth_token %>
</div>
<% end %>