new_discussion_topic.email.mustache 758 B

1234567891011121314151617181920
  1. <% define_content :link do %>
  2. <%= polymorphic_url([asset.context, asset]) %>
  3. <% end %>
  4. <% define_content :subject do %>
  5. <%= t :subject, "New Discussion - %{discussion_topic}: %{course}", :discussion_topic => asset.title, :course => asset.context.name %>
  6. <% end %>
  7. <%= t :body, "A new discussion has been started that may be interesting to you:" %>
  8. <%= asset.title %>
  9. <%= html_to_text(asset.message, :base_url => dashboard_url) %>
  10. <% if asset.attachment %><%= before_label :file_included, "File Included" %> <%= asset.attachment.display_name %> - <%= asset.attachment.readable_size %>
  11. <%= polymorphic_url([asset.context, :file_download], file_id: asset.attachment) %>
  12. <% end %>
  13. <%= t :details, "Join the conversation here:" %>
  14. <%= content :link %>