<% # 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 %><%= @actual_rubric.title %><% end %> <% add_crumb t('#crumbs.rubrics', 'Rubrics'), context_url(@context, :context_rubrics_url) %> <% add_crumb @actual_rubric.title %> <% js_bundle :edit_rubric %> <% css_bundle :learning_outcomes %> <% js_bundle 'rubrics_show' %> <% if @context.root_account.feature_enabled?(:instui_nav) %>

<%= @actual_rubric.title %>

<% if !!js_env.dig(:PERMISSIONS, :manage_rubrics)%> <% if can_do(@actual_rubric, @current_user, :update) %> <%= t('titles.edit_rubric', 'Edit Rubric') %> <% else %> <%= t('rubric_can_not_modify', 'Rubrics cannot be modified once they have been used in more than one place.') %> <% end %> <% if can_do(@actual_rubric, @current_user, :delete) %> <%= t('buttons.delete', 'Delete Rubric') %> <% end %> <% end %>
<% else %> <% provide :right_side do %>
<% if !!js_env.dig(:PERMISSIONS, :manage_rubrics)%> <% if can_do(@actual_rubric, @current_user, :update) %> <%= t('titles.edit_rubric', 'Edit Rubric') %> <% else %> <%= t('rubric_can_not_modify', 'Rubrics cannot be modified once they have been used in more than one place.') %> <% end %> <% if can_do(@actual_rubric, @current_user, :delete) %> <%= t('buttons.delete', 'Delete Rubric') %> <% end %> <% end %>
<% end %> <% end %>
<% [@actual_rubric].each do |rubric| %> <%= render :partial => "shared/rubric", :object => rubric, :locals => {:association => @account, :editable => can_do(rubric, @current_user, :update), :edit_view => true, :for_context => true} %> <% end %>
<%= render :partial => "shared/find_outcome" %> <%= render :partial => "shared/rubric", :object => nil %> <%= render :partial => "shared/rubric_criterion_dialog" %>