canvas-lms/app/messages/assignment_due_date_reminde...

6 lines
666 B
Plaintext

<% define_content :link do %>
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment.id %>
<% end %>
Canvas Alert - Reminder: <%= asset.assignment.title %>, <%= asset.assignment.context.name %> due <%= datetime_string(force_zone(asset.assignment.due_at)) %>
<%= t('assignment_is_due', 'Canvas Alert - Reminder: %{assignment_name}, %{course_name} is due %{due_date}', :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name, :due_date => datetime_string(force_zone(asset.assignment.due_at))) %>