% define_content :link do %> <%= conversation_url(asset.conversation_id) %> <% end %> <% define_content :user_name do %> <%= asset.author_short_name_with_shared_contexts(user) rescue t(:unknown_user, "Unknown User") %> <% end %> <% define_content :subject do %> <% if IncomingMailProcessor::MailboxAccount.reply_to_enabled %> <%= t "%{user_name}, you just sent a message in Canvas.", :user_name => content(:user_name) %> <% else %> <%= t "%{user_name}, you just sent a message in Canvas - Do not reply", :user_name => content(:user_name) %> <% end %> <% end %> <% define_content :footer_link do %> <% if IncomingMailProcessor::MailboxAccount.reply_to_enabled %> <%= t "View this message in Conversations" %> <% else %> <%= t "Reply to this message in Canvas" %> <% end %> <% end %> <% if asset.conversation.subject.present? %>
<%= format_message(asset.body).first %>
<% if avatar_enabled? %>
|
<% if IncomingMailProcessor::MailboxAccount.reply_to_enabled %>
<%= author_short_name%>
<% else %>
<%= author_short_name%> <%= t"Please do not reply to this email, it will not be delivered." %>
<% end %>
<%= author_email_address%>
<%= t :audio_comment, "This message includes media comments. To listen or reply, click the link below:" %>
<% elsif IncomingMailProcessor::MailboxAccount.reply_to_enabled %><%= t :reply_to_conversation_message, "You can reply to this message in Canvas by replying directly to this email. If you need to include an attachment, please log in to Canvas and reply through the Inbox." %>
<% else %><%=t :pre_you_can, "You can "%><%= t"reply to this message in Canvas." %>
<% end %> <% unless asset.attachments.empty? %><%= t :attached_files, "Attached Files:" %>