assignment_submitted.email.html.mustache 792 B

123456789101112131415161718192021
  1. <% define_content :link do %>
  2. <%= course_assignment_submission_url(asset.assignment.context, asset.assignment, asset.user_id) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t('user_submitted', 'Submission: %{user_name}, %{assignment_name}',
  6. :user_name => asset.user.name,
  7. :assignment_name => asset.assignment.title) %>
  8. <% end %>
  9. <% define_content :footer_link do %>
  10. <a href="<%= content(:link) %>">
  11. <%= t :link, "Click here to view the submission" %>
  12. </a>
  13. <% end %>
  14. <p><%= t('user_submitted_sentence', '%{user_name} has just turned in a submission for %{assignment_name} in the course %{course_name}',
  15. :user_name => asset.user.name,
  16. :assignment_name => asset.assignment.title,
  17. :course_name => asset.assignment.context.name) %></p>