29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
<% define_content :link do %>
|
|
<%= HostUrl.protocol %>://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/discussion_topics/<%= asset.id %>
|
|
<% end %>
|
|
|
|
<% define_content :subject do %>
|
|
<%= t :subject, "New Discussion - %{discussion_topic}: %{course}", :discussion_topic => asset.title, :course => asset.context.name %>
|
|
<%end%>
|
|
|
|
<% define_content :footer_link do %>
|
|
<a href="<%= content(:link) %>">
|
|
<%= t :link, "Click here to join the conversation" %>
|
|
</a>
|
|
<% end %>
|
|
|
|
<p><%= t :body, "A new discussion has been started that may be interesting to you:" %></p>
|
|
|
|
<p><strong><%= asset.title %></strong></p>
|
|
|
|
<%= html_to_simple_html(asset.message, :base_url => "#{HostUrl.protocol}://#{HostUrl.context_host(asset.context)}") %>
|
|
|
|
<% if asset.attachment %>
|
|
<div style="margin-top: 20px; padding: 10px; border: 1px solid #f1f1f1; background-color: #f3f3f3;">
|
|
<p style="margin: 0px;"><%= t :attached_file, "Attached File" %></p>
|
|
<ul style="padding-left: 20px;">
|
|
<li><%= asset.attachment.display_name %> - <%= asset.attachment.readable_size %>
|
|
<a href="<%= HostUrl.protocol %>://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/files/<%= asset.attachment_id %>/download">[<%= t :download, "download" %>]</a></li>
|
|
</ul>
|
|
</div>
|
|
<% end %> |