new_course.email.html.mustache 937 B

1234567891011121314151617181920212223242526272829303132
  1. <% define_content :link do %>
  2. <%= course_url(asset) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t :subject, "New Course" %>
  6. <% end %>
  7. <% define_content :footer_link do %>
  8. <a href="<%= content(:link) %>">
  9. <%= t :link, "Click here to view the course" %>
  10. </a>
  11. <% end %>
  12. <p><%= t :title, "New Course for %{account}", :account => asset.root_account.name %></p>
  13. <p><%= t :body, "A course, %{course}, has been added for the account %{account}", :course => asset.name, :account => asset.root_account.name %></p>
  14. <% if !asset.teachers.empty? %>
  15. <p>
  16. <strong><%= before_label :teachers, "Teachers" %></strong>
  17. <ul style="padding: 0; list-style: none;">
  18. <% asset.teachers.each do |teacher| %>
  19. <li>
  20. <a href="<%= course_user_url(asset, teacher) %>"><%= teacher.name %></a>
  21. <% if teacher.email %>(<%= teacher.email %>)<% end %>
  22. </li>
  23. <% end %>
  24. </ul>
  25. </p>
  26. <% end %>