i18n assignment messages
make it stop. Change-Id: I07ac240d0def58730dc2fe2135605543884158ec Reviewed-on: https://gerrit.instructure.com/4494 Reviewed-by: Cody Cutrer <cody@instructure.com> Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
parent
748471c2db
commit
6c6147b350
|
@ -1,4 +1,5 @@
|
|||
<% define_content :link do %>
|
||||
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/assignments/<%= asset.id %>
|
||||
<% end %>
|
||||
Canvas Alert - Change: <%= asset.title %>, <%= asset.context.name %>
|
||||
|
||||
<%= t('assignment_change', 'Canvas Alert - Change: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
|
|
|
@ -3,14 +3,18 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Assignment Created - <%= asset.title %>: <%= asset.context.name %>
|
||||
<%= t('assignment_created', 'Assignment Created - %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% end %>
|
||||
|
||||
A new assignment has been created for your course, <%= asset.context.name %>
|
||||
<%= t('new_assignment', 'A new assignment has been created for your course, %{course_name}', :course_name => asset.context.name) %>
|
||||
|
||||
<%= asset.title %>
|
||||
<%= asset.title %>
|
||||
|
||||
due: <%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<% if asset.due_at %>
|
||||
<%= t('due_at', 'due: %{assignment_due_date_time}', :assignment_due_date_time => datetime_string(force_zone(asset.due_at))) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'due: No Due Date') %>
|
||||
<% end %>
|
||||
|
||||
Click here to view the assignment:
|
||||
<%= before_label('click_to_see_assignment', 'Click here to view the assignment') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,10 +2,12 @@
|
|||
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/assignments/<%= asset.id %>
|
||||
<% end %>
|
||||
|
||||
A new assignment has been created for <%= asset.context.name %>:
|
||||
<%= t('new_assignment', 'A new assignment has been created for %{course_name}', :course_name => asset.context.name) %>
|
||||
<br/><br/>
|
||||
<b><a href="<%= content :link %>"><%= asset.title %></a></b>
|
||||
<br/>
|
||||
<% if asset.due_at %>
|
||||
is due <b><%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %></b>
|
||||
<%= t('due_at', 'due: %{assignment_due_date_time}', :assignment_due_date_time => datetime_string(force_zone(asset.due_at))) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'due: No Due Date') %>
|
||||
<% end %>
|
|
@ -1,6 +1,10 @@
|
|||
New Assignment for <%= asset.context.name %>:
|
||||
<%= t('new_assignment', 'New assignment for %{course_name}', :course_name => asset.context.name) %>
|
||||
<%= asset.title %>
|
||||
|
||||
due: <%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<% if asset.due_at %>
|
||||
<%= t('due_at', 'due: %{assignment_due_date_time}', :assignment_due_date_time => datetime_string(force_zone(asset.due_at))) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'due: No Due Date') %>
|
||||
<% end %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.context) %>
|
||||
<%= t('more_info', 'More info at %{course_name}', :course_name => HostUrl.context_host(asset.context)) %>
|
|
@ -3,7 +3,11 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Assignment Created - <%= asset.title %>: <%= asset.context.name %>
|
||||
<%= t('assignment_created', 'Assignment Created - %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% end %>
|
||||
|
||||
due: <%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<% if asset.due_at %>
|
||||
<%= t('due_at', 'due: %{assignment_due_date_time}', :assignment_due_date_time => datetime_string(force_zone(asset.due_at))) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'due: No Due Date') %>
|
||||
<% end %>
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<% define_content :link do %>
|
||||
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/assignments/<%= asset.id %>
|
||||
<% end %>
|
||||
Canvas Alert - New Assignment: <%= asset.title %>, <%= asset.context.name %>
|
||||
due: <%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<%= t('assignment_change', 'Canvas Alert - Change: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% if asset.due_at %>
|
||||
<%= t('due_at', 'due: %{assignment_due_date_time}', :assignment_due_date_time => datetime_string(force_zone(asset.due_at))) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'due: No Due Date') %>
|
||||
<% end %>
|
||||
|
|
|
@ -3,13 +3,17 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Assignment Due Date Changed: <%= asset.title %>, <%= asset.context.name %>
|
||||
<%= t('assignment_due_date_changed', 'Assignment Due Date Changed: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% end %>
|
||||
|
||||
The due date for the assignment, <%= asset.title %>, for the course, <%= asset.context.name %> has changed to:
|
||||
<%= t('assignment_due_date_changed_sentence', 'The due date for the assignment, %{assignment_name}, for the course, %{course_name}, has changed to:', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
|
||||
<%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<% if asset.due_at %>
|
||||
<%= datetime_string(force_zone(asset.due_at)) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'No Due Date') %>
|
||||
<% end %>
|
||||
|
||||
|
||||
Click here to view the assignment:
|
||||
<%= before_label('click_to_see_assignment', 'Click here to view the assignment') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,5 +2,12 @@
|
|||
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/assignments/<%= asset.id %>
|
||||
<% end %>
|
||||
|
||||
The due date for the assignment <b><a href="<%= content :link %>"><%= asset.title %></a></b> for <%= asset.context.name %> has changed to
|
||||
<b><%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %></b>
|
||||
<%= t('assignment_due_date_changed_sentence', 'The due date for the assignment *%{assignment_name}* for %{course_name}, has changed to:', :assignment_name => asset.title, :course_name => asset.context.name, :wrapper => "<b><a href=\"#{content :link}\">\\1</a></b>") %>
|
||||
|
||||
<b>
|
||||
<% if asset.due_at %>
|
||||
<%= datetime_string(force_zone(asset.due_at)) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'No Due Date') %>
|
||||
<% end %>
|
||||
</b>
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
<%= asset.title %>, <%= asset.context.name %>, is now due:
|
||||
<%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<%= t('assignment_due_date_changed', '%{assignment_name}, %{course_name}, is now due:', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% if asset.due_at %>
|
||||
<%= datetime_string(force_zone(asset.due_at)) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'No Due Date') %>
|
||||
<% end %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.context) %>
|
||||
<%= t('more_info_at_url', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.context)) %>
|
|
@ -3,7 +3,11 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Assignment Due Date Changed: <%= asset.title %>, <%= asset.context.name %>
|
||||
<%= t('assignment_due_date_changed', 'Assignment Due Date Changed: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% end %>
|
||||
|
||||
due: <%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<% if asset.due_at %>
|
||||
<%= t('due_at', 'due: %{assignment_due_date_time}', :assignment_due_date_time => datetime_string(force_zone(asset.due_at))) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'due: No Due Date') %>
|
||||
<% end %>
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
<% define_content :link do %>
|
||||
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/assignments/<%= asset.id %>
|
||||
<% end %>
|
||||
Canvas Alert - Date Change: <%= asset.title %>, <%= asset.context.name %> due:
|
||||
<%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<%= t('assignment_change', 'Canvas Alert - Date Change: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% if asset.due_at %>
|
||||
<%= t('due_at', 'due: %{assignment_due_date_time}', :assignment_due_date_time => datetime_string(force_zone(asset.due_at))) %>
|
||||
<% else %>
|
||||
<%= t('no_due_date', 'due: No Due Date') %>
|
||||
<% end %>
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Due: <%= asset.assignment.title %>, <%= asset.assignment.context.name %>
|
||||
<%= t('assignment_due', 'Due: %{assignment_name}, %{course_name}', :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<% end %>
|
||||
|
||||
This is a reminder that the assignment <%= asset.assignment.title %>, for the course, <%= asset.assignment.context.name %> is due <%= datetime_string(force_zone(asset.assignment.due_at)) %>.
|
||||
<%= t('assignment_due_sentence', 'This is a reminder that the assignment %{assignment_name}, for the course, %{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))) %>
|
||||
|
||||
Click here to view the assignment:
|
||||
<%= before_label('click_to_view_assignment', 'Click here to view the assignment') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment.id %>
|
||||
<% end %>
|
||||
|
||||
This is a reminder that the assignment <b><a href="<%= content :link %>"><%= asset.assignment.title %></a></b> for <%= asset.assignment.context.name %> is due <b><%= datetime_string(force_zone(asset.assignment.due_at)) %></b>.
|
||||
<%= mt('assignment_due_sentence', 'This is a reminder that the assignment [%{assignment_name}](%{assignment_url}) for %{course_name} is due %{due_date}', :assignment_name => asset.assignment.title, :assignment_url => content(:link), :course_name => asset.assignment.context.name, :due_date => datetime_string(force_zone(asset.assignment.due_at))) %>
|
|
@ -1,3 +1,3 @@
|
|||
<%= asset.assignment.title %>, <%= asset.assignment.context.name %> is due <%= datetime_string(force_zone(asset.assignment.due_at)) %>
|
||||
<%= t('assignment_is_due', '%{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))) %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.assignment.context) %>
|
||||
<%= t('more_info_at', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.assignment.context)) %>
|
|
@ -3,7 +3,7 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Due: <%= asset.assignment.title %>, <%= asset.assignment.context.name %>
|
||||
<%= t('assignment_due', 'Due: %{assignment_name}, %{course_name}', :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<% end %>
|
||||
|
||||
<%= asset.assignment.title %>, <%= asset.assignment.context.name %> is due <%= datetime_string(force_zone(asset.assignment.due_at)) %>.
|
||||
<%= t('assignment_is_due', '%{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))) %>
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
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))) %>
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Assignment Graded: <%= asset.title %>, <%= asset.context.name %>
|
||||
<%= t('assignment_graded', 'Assignment Graded: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% end %>
|
||||
|
||||
<%= asset.submissions.graded.map(&:user_id).include?(user.id) ? "Your" : "The" %> assignment, <%= asset.title %>, has been graded.
|
||||
<%= t('the_assignment_is_graded', 'The assignment, %{assignment_name}, has been graded.', :assignment_name => asset.title) %>
|
||||
|
||||
You can view it here:
|
||||
<%= before_label('view_here', 'You can view it here') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/assignments/<%= asset.id %>
|
||||
<% end %>
|
||||
|
||||
<%= asset.submissions.graded.map(&:user_id).include?(user.id) ? "Your" : "The" %> assignment, <b><a href="<%= content :link %>"><%= asset.title %></a></b>, has been graded.
|
||||
<%= t('the_assignment_is_graded', 'The assignment, %{assignment_name}, has been graded.', :assignment_name => asset.title) %>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<%= asset.title %>, <%= asset.context.name %> has been graded.
|
||||
<%= t('assignment_is_graded', '%{assignment_name}, %{course_name} has been graded.', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.context) %>
|
||||
<%= t('more_info_at', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.context)) %>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Assignment Graded: <%= asset.title %>, <%= asset.context.name %>
|
||||
<%= t('assignment_graded', 'Assignment Graded: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
<% end %>
|
||||
|
||||
due: <%= force_zone(asset.due_at).strftime("%b %d at %I:%M") rescue "No Due Date" %><%= force_zone(asset.due_at).strftime("%p").downcase rescue "" %>
|
||||
<%= t('the_assignment_is_graded', 'The assignment, %{assignment_name}, has been graded.', :assignment_name => asset.title) %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% define_content :link do %>
|
||||
http://<%= HostUrl.context_host(asset.context) %>/<%= asset.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/assignments/<%= asset.id %>
|
||||
<% end %>
|
||||
Canvas Alert - Graded: <%= asset.title %>, <%= asset.context.name %>
|
||||
<%= t('assignment_graded', 'Canvas Alert - Graded: %{assignment_name}, %{course_name}', :assignment_name => asset.title, :course_name => asset.context.name) %>
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Ungraded Assignment: <%= asset.assignment.title %>, <%= asset.assignment.context.name %>
|
||||
<%= t('ungraded_assignment', 'Ungraded Assignment: %{assignment_name}, %{course_name}', :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<% end %>
|
||||
|
||||
It looks like the assignment, <%= asset.assignment.title %>, for the course, <%= asset.assignment.context.name %> hasn't been graded. It was due <%= datetime_string(force_zone(asset.assignment.due_at)) %>.
|
||||
<%= t('ungraded_assignment_sentence', "It looks like the assignment, %{assignment_name}, for the course, %{course_name}, hasn't been graded. It was due %{due_date}.", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name, :due_date => datetime_string(force_zone(asset.assignment.due_at))) %>
|
||||
|
||||
Click here to view the assignment:
|
||||
<%= before_label('click_to_view', 'Click here to view the assignment') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment.id %>
|
||||
<% end %>
|
||||
|
||||
It looks like the assignment <b><a href="<%= content :link %>"><%= asset.assignment.title %></a></b> for <%= asset.assignment.context.name %> hasn't been graded. It was due <b><%= datetime_string(force_zone(asset.assignment.due_at)) %></b>.
|
||||
<%= t('ungraded_assignment_sentence', "It looks like the assignment, [%{assignment_name}](%{assignment_url}), for the course, %{course_name}, hasn't been graded. It was due %{due_date}.", :assignment_name => asset.assignment.title, :assignment_url => content(:link), :course_name => asset.assignment.context.name, :due_date => datetime_string(force_zone(asset.assignment.due_at))) %>
|
|
@ -1,3 +1,3 @@
|
|||
<%= asset.assignment.title %>, <%= asset.assignment.context.name %>, hasn't been graded, even though it was due <%= datetime_string(force_zone(asset.assignment.due_at)) %>
|
||||
<%= t('not_graded', "%{assignment_name}, %{course_name}, hasn't been graded, even though it was due %{due_date}", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name, :due_date => datetime_string(force_zone(asset.assignment.due_at))) %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.assignment.context) %>
|
||||
<%= t('more_info_at', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.assignment.context)) %>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Ungraded Assignment: <%= asset.assignment.title %>, <%= asset.assignment.context.name %>
|
||||
<%= t('ungraded_assignment', 'Ungraded Assignment: %{assignment_name}, %{course_name}', :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<% end %>
|
||||
|
||||
<%= asset.assignment.title %>, <%= asset.assignment.context.name %> hasn't been graded. It was due <%= datetime_string(force_zone(asset.assignment.due_at)) %>.
|
||||
<%= t('not_graded', "%{assignment_name}, %{course_name}, hasn't been graded. It was due %{due_date}", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name, :due_date => datetime_string(force_zone(asset.assignment.due_at))) %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% 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: grade <%= asset.assignment.title %>, <%= asset.assignment.context.name %>, due <%= datetime_string(force_zone(asset.assignment.due_at)) %>
|
||||
<%= t('not_graded', "Canvas Alert - Reminder: grade %{assignment_name}, %{course_name}, due %{due_date}", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name, :due_date => datetime_string(force_zone(asset.assignment.due_at))) %>
|
||||
|
|
|
@ -3,11 +3,11 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Unpublished Assignment: <%= asset.assignment.title %>, <%= asset.assignment.context.name %>
|
||||
<%= t('ungraded_assignment', 'Unpublished Assignment: %{assignment_name}, %{course_name}', :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<% end %>
|
||||
|
||||
|
||||
The assignment, <%= asset.assignment.title %>, for the course, <%= asset.assignment.context.name %> appears to have been graded, but not published. Publishing assignments notifies students that their grades have been entered and finalized.
|
||||
<%= t('ungraded_assignment_sentence', "The assignment, %{assignment_name}, for the course, %{course_name}, appears to have been graded, but not published. Publishing assignments notifies students that their grades have been entered and finalized.", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
|
||||
Click here to view the assignment:
|
||||
<%= before_label('click_to_view', 'Click here to view the assignment') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment.id %>
|
||||
<% end %>
|
||||
|
||||
The assignment <b><a href="<%= content :link %>"><%= asset.assignment.title %></a></b> for <%= asset.assignment.context.name %> appears to have been graded, but not published. Publishing assignments notifies students that their grades have been entered and finalized.
|
||||
<%= t('ungraded_assignment_sentence', "The assignment *%{assignment_name}* for %{course_name} appears to have been graded, but not published. Publishing assignments notifies students that their grades have been entered and finalized.", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name, :wrapper => "<b><a href=\"#{content :link}\">\\1</a></b>") %>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
<%= asset.assignment.title %>, <%= asset.assignment.context.name %>, still needs to be published so students know their grades are entered and official
|
||||
<%= t('ungraded_assignment_sentence', "%{assignment_name}, %{course_name}, still needs to be published so students know their grades are entered and official", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.assignment.context) %>
|
||||
<%= t('more_info_at', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.assignment.context)) %>
|
|
@ -3,8 +3,8 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Unpublished Assignment: <%= asset.assignment.title %>, <%= asset.assignment.context.name %>
|
||||
<%= t('ungraded_assignment', 'Unpublished Assignment: %{assignment_name}, %{course_name}', :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<% end %>
|
||||
|
||||
|
||||
<%= asset.assignment.title %>, <%= asset.assignment.context.name %> hasn't been published, even though it's been graded.
|
||||
<%= t('ungraded_assignment_sentence', "%{assignment_name}, %{course_name}, hasn't been published, even though it's been graded.", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% 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: publish <%= asset.assignment.title %>, <%= asset.assignment.context.name %>
|
||||
<%= t('ungraded_assignment_sentence', "Canvas Alert - Reminder: publish %{assignment_name}, %{course_name}", :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
|
@ -3,10 +3,10 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Re-Submission: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_resubmitted', 'Re-Submission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
<% end %>
|
||||
|
||||
<%= asset.user.name %> has just turned in a re-submission for <%= asset.assignment.title %> in the course <%= asset.assignment.context.name %>.
|
||||
<%= t('user_resubmitted_sentence', '%{user_name} has just turned in a re-submission for %{assignment_name} in the course %{course_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
|
||||
You can view the submission here:
|
||||
<%= before_label('view_submission', 'You can view the submission here') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment_id %>/submissions/<%= asset.user_id %>
|
||||
<% end %>
|
||||
|
||||
<b><%= asset.user.name %></b> has just turned in a re-submission for <b><%= asset.assignment.title %></b> in the course <%= asset.assignment.context.name %>.
|
||||
<%= mt('user_resubmitted', '**%{user_name}** has just turned in a re-submission for **%{assignment_name}** in the course %{course_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<br/><br/>
|
||||
<b><a href="<%= content :link %>">Click here to view the submission.</a></b>
|
||||
<b><a href="<%= content :link %>"><%= t('click_to_view', 'Click here to view the submission.') %></a></b>
|
|
@ -1,3 +1,4 @@
|
|||
<%= asset.user.name %> just turned in their assignment (again), <%= asset.assignment.title %>
|
||||
<%= t('user_resubmitted', '%{user_name} just turned in their assignment (again), %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.assignment.context) %>
|
||||
<%= t('more_info_at', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.assignment.context)) %>
|
|
@ -3,6 +3,6 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Re-Submission: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_resubmitted', 'Re-Submission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
<% end %>
|
||||
turned in: <%= force_zone(asset.submitted_at).strftime("%b %d at %I:%M") rescue "" %><%= force_zone(asset.submitted_at).strftime("%p").downcase rescue "" %>
|
||||
<%= t('turned_in_at', 'turned in: %{submission_date}', :submission_date => datetime_string(force_zone(asset.submitted_at))) %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% 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 %>/submissions/<%= asset.user_id %>
|
||||
<% end %>
|
||||
Canvas Alert - Resubmission: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_resubmitted', 'Canvas Alert - Resubmission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Submission: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', 'Submission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
<% end %>
|
||||
|
||||
<%= asset.user.name %> has just turned in a submission for <%= asset.assignment.title %> in the course <%= asset.assignment.context.name %>.
|
||||
<%= t('user_submitted_sentence', '%{user_name} has just turned in a submission for %{assignment_name} in the course %{course_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
|
||||
You can view the submission here:
|
||||
<%= before_label('view_submission', 'You can view the submission here') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment_id %>/submissions/<%= asset.user_id %>
|
||||
<% end %>
|
||||
|
||||
<b><%= asset.user.name %></b> has just turned in a submission for <b><%= asset.assignment.title %></b> in the course <%= asset.assignment.context.name %>.
|
||||
<%= mt('user_submitted', '**%{user_name}** has just turned in a submission for **%{assignment_name}** in the course %{course_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<br/><br/>
|
||||
<b><a href="<%= content :link %>">Click here to view the submission.</a></b>
|
||||
<b><a href="<%= content :link %>"><%= t('click_to_view', 'Click here to view the submission.') %></a></b>
|
|
@ -1,3 +1,3 @@
|
|||
<%= asset.user.name %> just turned in their assignment, <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', '%{user_name} just turned in their assignment, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.assignment.context) %>
|
||||
<%= t('more_info_at', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.assignment.context)) %>
|
|
@ -3,6 +3,6 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Submission: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', 'Submission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
<% end %>
|
||||
turned in: <%= force_zone(asset.submitted_at).strftime("%b %d at %I:%M") rescue "" %><%= force_zone(asset.submitted_at).strftime("%p").downcase rescue "" %>
|
||||
<%= t('turned_in_at', 'turned in: %{submission_date}', :submission_date => datetime_string(force_zone(asset.submitted_at))) %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% 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 %>/submissions/<%= asset.user_id %>
|
||||
<% end %>
|
||||
Canvas Alert - Submission: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', 'Canvas Alert - Submission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Late Assignment: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', 'Late Assignment: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
<% end %>
|
||||
|
||||
<%= asset.user.name %> has just turned in a late submission for <%= asset.assignment.title %> in the course <%= asset.assignment.context.name %>.
|
||||
<%= t('user_resubmitted_sentence', '%{user_name} has just turned in a late submission for %{assignment_name} in the course %{course_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
|
||||
You can view the submission here:
|
||||
<%= before_label('view_submission', 'You can view the submission here') %>
|
||||
<%= content :link %>
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
http://<%= HostUrl.context_host(asset.assignment.context) %>/<%= asset.assignment.context.class.to_s.downcase.pluralize %>/<%= asset.assignment.context_id %>/assignments/<%= asset.assignment_id %>/submissions/<%= asset.user_id %>
|
||||
<% end %>
|
||||
|
||||
<b><%= asset.user.name %></b> has just turned in a late submission for <b><%= asset.assignment.title %></b> in the course <%= asset.assignment.context.name %>.
|
||||
<%= mt('user_resubmitted_sentence', '**%{user_name}** has just turned in a late submission for **%{assignment_name}** in the course %{course_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title, :course_name => asset.assignment.context.name) %>
|
||||
<br/><br/>
|
||||
<b><a href="<%= content :link %>">Click here to view the submission.</a></b>
|
||||
<b><a href="<%= content :link %>"><%= t('click_to_view', 'Click here to view the submission.') %></a></b>
|
|
@ -1,3 +1,3 @@
|
|||
<%= asset.user.name %> just turned in their assignment (late), <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', '%{user_name} just turned in their assignment (late), %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
|
||||
More info at <%= HostUrl.context_host(asset.assignment.context) %>
|
||||
<%= t('more_info_at', 'More info at %{web_address}', :web_address => HostUrl.context_host(asset.assignment.context)) %>
|
|
@ -3,6 +3,6 @@
|
|||
<% end %>
|
||||
|
||||
<% define_content :subject do %>
|
||||
Late Assignment: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', 'Late Assignment: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
<% end %>
|
||||
turned in: <%= force_zone(asset.submitted_at).strftime("%b %d at %I:%M") rescue "" %><%= force_zone(asset.submitted_at).strftime("%p").downcase rescue "" %>
|
||||
<%= t('turned_in_at', 'turned in: %{submission_date}', :submission_date => datetime_string(force_zone(asset.submitted_at))) %>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<% 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 %>/submissions/<%= asset.user_id %>
|
||||
<% end %>
|
||||
Canvas Alert - Late Submission: <%= asset.user.name %>, <%= asset.assignment.title %>
|
||||
<%= t('user_submitted', 'Canvas Alert - Late Submission: %{user_name}, %{assignment_name}', :user_name => asset.user.name, :assignment_name => asset.assignment.title) %>
|
||||
|
|
|
@ -20,6 +20,7 @@ class Message < ActiveRecord::Base
|
|||
include Workflow
|
||||
include SendToStream
|
||||
include Twitter
|
||||
include TextHelper
|
||||
|
||||
has_many :attachments, :as => :context
|
||||
belongs_to :notification
|
||||
|
|
Loading…
Reference in New Issue