submission_comment.email.mustache 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <% define_content :link do %>
  2. <%= polymorphic_url([asset.submission.assignment.context, asset.submission.assignment, :submission], id: asset.submission.user) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t :subject, "Submission Comment: %{user}, %{assignment}, %{context}",
  6. :user => submission_comment_submittor(asset, user),
  7. :assignment => asset.submission.assignment.title,
  8. :context => asset.submission.assignment.context.name %>
  9. <% end %>
  10. <%= t :body, "%{author} just made a new comment on the submission for %{user} for %{assignment}",
  11. :author => submission_comment_author(asset, user),
  12. :user => submission_comment_submittor(asset, user),
  13. :assignment => asset.submission.assignment.title %>
  14. <%= asset.comment %>
  15. <% if asset.media_comment? %>
  16. <%= t("This message includes media comments. To listen or reply, click this link: %{link}.", link: content(:link)) %>
  17. <% else %>
  18. <%= t("You can review the submission details by clicking this link: %{link}.", link: content(:link)) %>
  19. <% end %>
  20. <% unless asset.attachments.empty? %>
  21. <%= t "#messages.conversation_message.email.attached_files", "Attached Files:" %>
  22. <% asset.attachments.each do |attachment| %>
  23. <%= attachment.display_name %> - <%= attachment.readable_size %>
  24. <%= file_download_url(attachment) %>
  25. <% end %>
  26. <% end %>