2011-02-01 09:57:29 +08:00
<% define_content :link do %>
2014-03-14 01:44:09 +08:00
<%= polymorphic_url([asset.submission.assignment.context, asset.submission.assignment, :submission], id: asset.submission.user) %>
2011-02-01 09:57:29 +08:00
<% end %>
<% define_content :subject do %>
2011-06-30 03:19:49 +08:00
<%= t :subject, "Submission Comment: %{user}, %{assignment}, %{context}", :user => asset.submission.user.name, :assignment => asset.submission.assignment.title, :context => asset.submission.assignment.context.name %>
2011-02-01 09:57:29 +08:00
<% end %>
2013-04-27 06:05:24 +08:00
<%= t :body, "%{author} just made a new comment on the submission for %{user} for %{assignment}", :author => (asset.author_name || t(:someone, "Someone")), :user => asset.submission.user.short_name, :assignment => asset.submission.assignment.title %>
2011-02-01 09:57:29 +08:00
2013-04-27 06:05:24 +08:00
<%= asset.comment %>
<% if asset.media_comment? %>
<%= t "#messages.conversation_message.email.audio_comment", "This message includes media comments. To listen or reply, click the link below:" %>
<% else %>
2014-02-01 07:04:31 +08:00
<%= t :submission_comment_link_message, "You can review the submission details using the link below, or can reply to this comment by responding to this message." %>
2013-04-27 06:05:24 +08:00
<% end %>
2011-02-01 09:57:29 +08:00
<%= content :link %>
2013-04-27 06:05:24 +08:00
<% unless asset.attachments.empty? %>
<%= t "#messages.conversation_message.email.attached_files", "Attached Files:" %>
<% asset.attachments.each do |attachment| %>
2014-03-14 01:44:09 +08:00
<%= attachment.display_name %> - <%= attachment.readable_size %>
<%= file_download_url(attachment) %>
2013-04-27 06:05:24 +08:00
<% end %>
<% end %>