<% 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 => submission_comment_submittor(asset, user), :assignment => asset.submission.assignment.title, :context => asset.submission.assignment.context.name %> <% end %> <% define_content :footer_link do %> <%= t :link_message, "Click here to view the comment" %> <% end %>

<%= t :body, "%{author} just made a new comment on the submission for %{user} for %{assignment}", :author => submission_comment_author(asset, user), :user => submission_comment_submittor(asset, user), :assignment => asset.submission.assignment.title %>

<%= format_message(asset.comment).first %> <% if asset.can_read_author?(user, nil) %> <% if avatar_enabled? %>
<%=author_short_name%>
<%= author_short_name%>
<%= author_email_address%>
<% else %>

<%= author_short_name%>
<%= author_email_address%>

<% end %> <% end %> <% if asset.media_comment? %>

<%= t "#messages.conversation_message.email.audio_comment", "This message includes media comments. To listen or reply, click the link below:" %>

<% elsif IncomingMailProcessor::MailboxAccount.reply_to_enabled %>

<%= 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. When allowed, if you need to include an attachment, please log in to Canvas and reply to the submission." %>

<% else %>

<%= t "You can review the submission details using the link below." %>

<% end %> <% unless asset.attachments.empty? %>

<%= t "#messages.conversation_message.email.attached_files", "Attached Files:" %>

<% end %>