<% define_content :link do %> <%= polymorphic_url([asset.context, asset]) %> <% 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 %> <%= t :link, "Click here to join the conversation" %> <% end %>

<%= t :body, "A new discussion has been started that may be interesting to you:" %>

<%= asset.title %>

<% if !asset.available_for?(user, :check_policies => true) %> <%= t("Discussion content is locked or not yet available") %> <% else %> <%= html_to_simple_html(asset.message, :base_url => dashboard_url, :tags => ['tr', 'td', 'table', 'tbody', 'caption'], :attributes => { 'table' => [ 'border', 'style', 'cellspacing', 'cellpadding' ] }) %> <% end %> <% if asset.attachment %>

<%= t :attached_file, "Attached File" %>

<% end %>