2011-07-30 01:46:41 +08:00
|
|
|
<% define_content :link do %>
|
2014-03-14 01:44:09 +08:00
|
|
|
<%= conversation_url(asset.conversation_id) %>
|
2011-07-30 01:46:41 +08:00
|
|
|
<% end %>
|
2014-05-22 04:10:10 +08:00
|
|
|
|
2011-07-30 01:46:41 +08:00
|
|
|
<% define_content :user_name do %>
|
2014-02-25 07:33:21 +08:00
|
|
|
<%= asset.author_short_name_with_shared_contexts(user) rescue t(:unknown_user, "Unknown User") %>
|
2011-07-30 01:46:41 +08:00
|
|
|
<% end %>
|
2014-05-22 04:10:10 +08:00
|
|
|
|
2011-07-30 01:46:41 +08:00
|
|
|
<% define_content :subject do %>
|
|
|
|
<%= t :subject, "%{user_name} just sent you a message in Canvas.", :user_name => content(:user_name) %>
|
|
|
|
<% end %>
|
2014-01-17 05:47:58 +08:00
|
|
|
|
2014-05-22 04:10:10 +08:00
|
|
|
<% define_content :footer_link do %>
|
|
|
|
<a href="<%= content :link %>">
|
|
|
|
<%= t :view_message, "View this message in Conversations" %>
|
|
|
|
</a>
|
2014-01-17 05:47:58 +08:00
|
|
|
<% end %>
|
2011-07-30 01:46:41 +08:00
|
|
|
|
2014-05-22 04:10:10 +08:00
|
|
|
|
|
|
|
<% if asset.conversation.subject.present? %>
|
|
|
|
Subject: <%= asset.conversation.subject %>
|
2011-07-30 01:46:41 +08:00
|
|
|
<% end %>
|
|
|
|
|
2014-05-22 04:10:10 +08:00
|
|
|
<%= asset.body %>
|
2014-08-26 05:12:37 +08:00
|
|
|
|
|
|
|
<% if asset.has_media_objects? %>
|
2015-10-30 01:03:25 +08:00
|
|
|
<%= t("This message includes media comments. To listen or reply, click this link: %{link}.", link: content(:link)) %>
|
2014-08-26 05:12:37 +08:00
|
|
|
<% else %>
|
2015-10-30 01:03:25 +08:00
|
|
|
<%= t("You can reply to this message in Canvas by replying directly to this email, or by clicking this link: %{link}.", link: content(:link)) %>
|
2014-08-26 05:12:37 +08:00
|
|
|
<% end %>
|
|
|
|
|
2011-07-30 01:46:41 +08:00
|
|
|
<% unless asset.attachments.empty? %>
|
2014-05-22 04:10:10 +08:00
|
|
|
<%= t :attached_files, "Attached Files:" %>
|
|
|
|
<% asset.attachments.each do |attachment| %>
|
|
|
|
<%= attachment.display_name %> - <%= attachment.readable_size %>
|
2014-03-14 01:44:09 +08:00
|
|
|
<%= file_download_url(attachment, verifier: attachment.uuid) %>
|
2014-05-22 04:10:10 +08:00
|
|
|
<% end %>
|
2011-07-30 01:46:41 +08:00
|
|
|
<% end %>
|