canvas-lms/app/messages/new_announcement.summary.erb

10 lines
309 B
Plaintext

<% define_content :link do %>
<%= polymorphic_url([asset.context, asset]) %>
<% end %>
<% define_content :subject do %>
<%= before_label asset.title %> <%= asset.context.name %>
<% end %>
<%= CanvasTextHelper.truncate_text(html_to_text(asset.message, :base_url => dashboard_url), :max_length => 500) %>