16 lines
661 B
Plaintext
16 lines
661 B
Plaintext
<% p = asset.is_a?(Pseudonym) ? asset : asset.pseudonym %>
|
|
<% cc = asset.is_a?(CommunicationChannel) ? asset : (p.communication_channel || p.user.communication_channel) %>
|
|
<% define_content :link do %>
|
|
<%= p.user.registered? ? confirm_change_password_url(p, cc.confirmation_code) : registration_confirmation_url(cc.confirmation_code) %>
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "Canvas Registration Complete" %>
|
|
<% end %>
|
|
|
|
<p><%= t :body, "You have been registered for a Canvas account at %{account}!", :account => p.account.display_name %></p>
|
|
|
|
<a href="<%= content(:link) %>">
|
|
<%= t :link, "Click here to access your account" %>
|
|
</a>
|