enrollment_invitation.email.mustache 768 B

12345678910111213141516171819
  1. <% define_content :link do %>
  2. <%= course_url(asset.course, invitation: asset.uuid) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t :subject, "Course Invitation" %>
  6. <% end %>
  7. <%= t "You've been invited to participate in the course, %{course}. Course role: %{role_type}",
  8. :course => asset.course.name, :role_type => asset.readable_role_name %>
  9. <% email = asset.user.email; login = (asset.user.pseudonym.unique_id rescue "none") %>
  10. <%= before_label :name, "Name" %> <%= asset.user.name %>
  11. <%= before_label :email, "Email" %> <%= asset.user.email %>
  12. <% if email != login %><%= before_label :username, "Username" %> <%= asset.user.pseudonym.unique_id rescue t(:none, "none") %><% end %>
  13. <%= t :details, "Visit the course page here:" %>
  14. <%= content :link %>