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

21 lines
771 B
Plaintext

<% define_content :link do %>
<%= polymorphic_url([asset.context, :files]) %>
<% end %>
<% define_content :subject do %>
<%= t('subject', '%{count} new files added for the course, %{name}',
:count => n(data.count),
:name => asset.context.name) %>
<% end %>
<%= t('body', '%{count} new files added for %{name}:',
:count => n(data.count),
:name => asset.context.name) %>
<%= data.display_names.first(Attachment::NOTIFICATION_MAX_DISPLAY).map { |title| title }.join(', ') %><%= '.'%>
<% if data.count > Attachment::NOTIFICATION_MAX_DISPLAY %>
<%= t('The first %{max_displayed} files are listed.',
:max_displayed => Attachment::NOTIFICATION_MAX_DISPLAY)%>
<% end %>
<%= t 'link', 'You can view them here' %>
<%= content :link %>