<% # Copyright (C) 2014 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <% if @assignment.peer_reviews? %> <% @presenter.peer_reviews_for(@current_user).each do |peer_review| %>
">
<% if peer_review.completed? %>

<%= t('You have completed a peer review for %{person}. Thank you', {:person => peer_review.user.name}) %>

<% else %>

<%= t('peer_review_alert', 'You have been assigned a peer review for %{person}', {:person => peer_review.user.name}) %> <%= link_to t("Review Now"), course_assignment_submission_path(@assignment.context_id, @assignment.id, peer_review.user_id) %>

> <%= t(:due_date, 'due %{date}', :date => OverrideListPresenter.new.formatted_date_string(:peer_reviews_due_at,@assignment)) %>
<% end %>
<% end %> <% end %>