<% # Copyright (C) 2011 - 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 . %> <% provide :page_title do %><%= join_title @context.name, @assignment.title, t(:page_title, "Peer Reviews") %><% end %> <%- css_bundle(:assignments_peer_review) %> <% provide :right_side do %> <%= t 'links.back_to_assignment', "Back to Assignment" %>

<%= t :details, "To the left you can see the list of students for this assignment, and also which student submissions (if any) they have been assigned to review." %>

<% unless @submissions.empty? %> <%= form_tag context_url(@context, :context_assignment_assign_peer_reviews_url, @assignment.id), {} do %>

<%= t 'titles.automatically_assign_reviews', "Automatically Assign Reviews" %>

<%= t 'descriptions.automatically_assign_reviews', "You can assign peer reviews to those users who have submitted but don't already have reviews assigned by clicking the button below." %>

<% if @assignment.group_category %>
<%= check_box_tag "intra_group_peer_reviews", "1", @assignment.intra_group_peer_reviews %>
<% end %> <%= t :reviews_per_user, "%{count} reviews per user", :count => %{}.html_safe %>
<% end %> <% end %> <% end %> <% js_bundle 'assignments_peer_reviews' %>

<%= t :title, "%{assignment} Peer Reviews", :assignment => @assignment.title %>

<% if @assignment.active_rubric_association? %>
<%= t :overview_with_rubric, "Peer reviews will be considered complete when students have filled out the rubric for the assignment." %>
<% else %>
<%= t :overview, "Peer reviews will be considered complete when students have commented at least once on the page." %>
<% end %>
<%= form_tag ".", {:id => "assign_peer_review_form", :style => "display: none;"} do %> <% end %> <%= will_paginate(@students, :style=>"margin-bottom: 1em;") %>