2011-02-01 09:57:29 +08:00
<% define_content :link do %>
2013-02-19 05:35:51 +08:00
<%= HostUrl.protocol %>://<%= HostUrl.context_host(asset.submission.assignment.context) %>/<%= asset.submission.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.submission.assignment.context_id %>/assignments/<%= asset.submission.assignment_id %>/submissions/<%= asset.submission.user_id %>
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 %>
2011-06-30 03:19:49 +08:00
<%= t :link_message, "You can review the submission details here:" %>
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| %>
<%= attachment.display_name %> - <%= attachment.readable_size %>
<%= HostUrl.protocol %>://<%= HostUrl.context_host(asset.context) %>/files/<%= attachment.id %>/download
<% end %>
<% end %>