forked from capability-boosters-dev/canvas-lms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account_user_registration.email.html.erb
40 lines (33 loc) · 1.49 KB
/
account_user_registration.email.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<% define_content :link do %>
<%= registration_confirmation_url(asset.user.communication_channel.confirmation_code) %>
<% end %>
<% define_content :subject do %>
<%= t :subject, "Canvas Account Admin Invitation" %>
<% end %>
<a href="<%= content(:link) %>">
<%= t(:click_to_finish_registration, "Click here to finish the registration process") %>
</a>
<% email = asset.user.email; login = (asset.user.pseudonym.unique_id rescue "none") %>
<p>
<%= t("You've been given an account role for the %{account} account at %{website}. Role type: %{role_type}.",
:role_type => asset.readable_type, :account => asset.account.name, :website => HostUrl.context_host(asset.account)) %>
</p>
<table border="0" style="font-size: 14px; color: #444444;
font-family: 'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif';
border-collapse: collapse;">
<tr>
<td style="padding-right: 10px;"><%= t(:name, 'Name') %>:</td>
<td style="font-weight: bold;"><%= asset.user.name %></td>
</tr>
<tr>
<td style="padding-right: 10px"><%= t(:email, 'Email') %>:</td>
<td style="font-weight: bold;"><%= email %></td>
</tr>
<% if email != login %>
<tr>
<td style="padding-right: 10px;"><%= t(:username, 'Username') %>:</td>
<td style="font-weight: bold;"><%= login %></td>
</tr>
<% end %>
</table>
<p><%= t(:url_info_label, "You'll need to register with Canvas before you can participate as an account admin.") %></p>