23 lines
947 B
Plaintext
23 lines
947 B
Plaintext
<% p = asset.is_a?(Pseudonym) ? asset : (asset.pseudonym || asset.user.pseudonym) %>
|
|
<% a = p&.account %>
|
|
<% product_name = a&.product_name || I18n.t('Canvas') %>
|
|
<% cc = asset.is_a?(CommunicationChannel) ? asset : (p.communication_channel || p.user.communication_channel) %>
|
|
|
|
<% define_content :link do %>
|
|
<%= registration_confirmation_url(cc.confirmation_code) %>
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "Confirm Registration: %{product_name}", product_name: product_name %>
|
|
<% end %>
|
|
|
|
<a href="<%= content(:link) %>">
|
|
<%= t :link, "Click here to finish the registration process" %>
|
|
</a>
|
|
|
|
<p><%= t :body,
|
|
"Thank you for registering with %{product_name}! This email is confirmation that the user %{user} is registering for a new account at %{website}.",
|
|
:product_name => product_name,
|
|
:user => asset.user.short_name,
|
|
:website => (HostUrl.context_host(p&.account) || HostUrl.default_host) %></p>
|