18 lines
871 B
Plaintext
18 lines
871 B
Plaintext
<% p = asset.is_a?(Pseudonym) ? asset : (asset.pseudonym || asset.user.pseudonym) %>
|
|
<% cc = asset.is_a?(CommunicationChannel) ? asset : (p.communication_channel || p.user.communication_channel) %>
|
|
<% define_content :link do %>
|
|
http://<%= HostUrl.context_host((p.account rescue nil)) %>/register/<%= cc.confirmation_code %>
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "Confirm Registration: Canvas" %>
|
|
<% end %>
|
|
|
|
<%= t :body,
|
|
"Thank you for registering with Canvas! This email is confirmation that the user %{user} is registering for a new account at %{website}.",
|
|
:user => asset.user.short_name,
|
|
:website => (HostUrl.context_host((asset.pseudonym || asset.user.pseudonym).account) rescue nil) || HostUrl.default_host %>
|
|
|
|
<%= t :details, "To finish the registration process, please visit the following url:" %>
|
|
<%= content :link %>
|