% define_content :link do %> <%= polymorphic_url([asset.context, asset]) %> <% end %> <% define_content :subject do %> <%= before_label asset.title %> <%= asset.context.name %> <% end %> <% define_content :footer_link do %> <%= t :link, "View announcement" %> <% end %> <%= html_to_simple_html(asset.message, :base_url => dashboard_url, :tags => ['tr', 'td', 'table', 'tbody', 'caption', 'span'], :attributes => { 'table' => [ 'border', 'style', 'cellspacing', 'cellpadding' ], 'span' => ['style'] }) %> <% if asset.attachment %>
<%= t :attached_file, "Attached File" %>