merge_email_communication_channel.email.html.mustache 734 B

123456789101112131415
  1. <%
  2. current_host = (HostUrl.context_host(asset.merge_candidates.first.pseudonym.account) rescue nil) || HostUrl.default_host
  3. new_host = (HostUrl.context_host((asset.pseudonym || asset.user.pseudonym).account) rescue nil) || HostUrl.default_host
  4. %>
  5. <% define_content :link do %>
  6. <%= registration_confirmation_url(asset.confirmation_code, host: current_host) %>
  7. <% end %>
  8. <% define_content :subject do %>
  9. {{#t}}New Canvas Account{{/t}}
  10. <% end %>
  11. <p><%= t :account_created, "An account has been created for you at %{host}, but you already have a Canvas account.", :host => new_host %></p>
  12. <p><%= t :merge2, "If you would like to merge them together, *click here*", :wrapper => "<a href=\"#{content(:link)}\">\\1</a>" %></p>