26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
<% define_content :link do %>
|
|
<%= polymorphic_url([asset.submission.assignment.context, asset.submission.assignment, :submission], id: asset.submission.user) %>
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "Submission Comment: %{user}, %{assignment}, %{context}", :user => asset.submission.user.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("This message includes media comments. To listen or reply, click this link: %{link}.", link: content(:link)) %>
|
|
<% else %>
|
|
<%= t("You can reply to this comment by responding to this message, or review the submission details using this link: %{link}.", link: content(:link)) %>
|
|
<% end %>
|
|
|
|
<% unless asset.attachments.empty? %>
|
|
<%= t "#messages.conversation_message.email.attached_files", "Attached Files:" %>
|
|
<% asset.attachments.each do |attachment| %>
|
|
<%= attachment.display_name %> - <%= attachment.readable_size %>
|
|
<%= file_download_url(attachment) %>
|
|
<% end %>
|
|
<% end %>
|