<% # 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, @assignment.title %> <% provide :right_side, render(:partial => "assignment_sidebar") %> <% if @show_locked_page %>

<%= @assignment.title %>

<%= render :partial => "assignment_details" %>
<%= @locked.is_a?(Hash) ? lock_explanation(@locked, 'assignment', @context) : t(:assignment_locked, "This assignment is currently locked.") %>
<% else %> <% if @assignment.omit_from_final_grade %>
<%= t("This assignment does not count toward the final grade.") %>
<% end %> <% end %> <% if !@locked && can_do(@assignment, @current_user, :submit) %> <%= render :partial => "submit_assignment", locals: { eula_url: eula_url }%> <% end %> <% if !Rubric.enhanced_rubrics_assignments_enabled?(@context) %> <%= render partial: "shared/rubrics_component" %> <% end %>