enrollment_invitation.email.html.mustache 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. <% define_content :footer_link do %>
  8. <a href="<%= content(:link) %>">
  9. {{#t}}Click here to view the course page{{/t}}
  10. </a>
  11. <% end %>
  12. <% email = asset.user.email; login = (asset.user.pseudonym.unique_id rescue "none") %>
  13. <p>
  14. <%= t "You've been invited to participate in the course, %{course}. Course role: %{role_type}",
  15. :course => asset.course.name, :role_type => asset.readable_role_name %>
  16. </p>
  17. <table border="0" style="font-size: 14px; color: #444444;
  18. font-family: 'Open Sans', 'Lucida Grande', 'Segoe UI', Arial, Verdana, 'Lucida Sans Unicode', Tahoma, 'Sans Serif';
  19. border-collapse: collapse;">
  20. <tr>
  21. <td style="padding-right: 10px;">{{#t}}Name{{/t}}:</td>
  22. <td style="font-weight: bold;"><%= asset.user.name %></td>
  23. </tr>
  24. <tr>
  25. <td style="padding-right: 10px">{{#t}}Email{{/t}}:</td>
  26. <td style="font-weight: bold;"><%= email %></td>
  27. </tr>
  28. <% if email != login %>
  29. <tr>
  30. <td style="padding-right: 10px;">{{#t}}Username{{/t}}:</td>
  31. <td style="font-weight: bold;"><%= asset.user.pseudonym.unique_id rescue t(:none, "none") %></td>
  32. </tr>
  33. <% end %>
  34. </table>
  35. <br><br>
  36. <table width="100%" border="0" style="text-align:center;">
  37. <tr>
  38. <td>
  39. <a href="<%= content(:link) %>" style="color: #FFFFFF; background-color: #008EE2; padding: 8px 40px; border-radius: 3px; text-decoration: none; font-weight: bold;">
  40. {{#t}}Get Started{{/t}}
  41. </a>
  42. </td>
  43. </tr>
  44. </table>