11 lines
910 B
Plaintext
11 lines
910 B
Plaintext
<% define_content :link do %>
|
|
<%= HostUrl.protocol %>://<%= 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 %>
|
|
|
|
<%= t :body, "The grade on your assignment, *%{title}* has been changed.", :title => asset.assignment.title, :wrapper => "<b><a href=\"#{content :link}\">\\1</a></b>" %>
|
|
|
|
<%= t :regraded_date, "re-graded: %{date}", :date => (datetime_string(force_zone(asset.graded_at)) rescue t(:no_date_set, "No Date Set")) %>
|
|
<% if asset.score && user.try(:send_scores_in_emails?) %><%= t :score, "score: %{score} out of %{total}", :score => asset.score, :total => (asset.assignment.points_possible || t(:not_applicable, "N/A")) %><% end %>
|
|
<%= t(:score_pending, "score pending review by the teacher") if asset.pending_review? %>
|
|
|