28 lines
1.5 KiB
Plaintext
28 lines
1.5 KiB
Plaintext
<% define_content :link do %>
|
|
<%= 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 %>
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "Submission Comment: %{user}, %{assignment}, %{context}", :user => asset.submission.user.short_name, :assignment => asset.submission.assignment.title, :context => asset.submission.assignment.context.name %>
|
|
<% end %>
|
|
|
|
<%= 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 %>
|
|
|
|
<%= 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 %>
|
|
<%= t :link_message, "You can review the submission details here:" %>
|
|
<% end %>
|
|
|
|
<%= content :link %>
|
|
|
|
<% 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 %>
|