<% # 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, t(:page_title, "Rubrics") %> <% add_crumb t('#crumbs.rubrics', "Rubrics") %> <% js_bundle :edit_rubric %> <% css_bundle :learning_outcomes %> <% css_bundle :proficiency_table %> <% js_bundle 'rubrics_index' %> <% if @context.root_account.feature_enabled?(:instui_nav)%>

<%= t('#crumbs.rubrics', "Rubrics") %>

<% if !!js_env.dig(:PERMISSIONS, :manage_rubrics)%> <%= t('buttons.add_rubric', 'Add Rubric') %> <% end %>
<% else %> <% if !!js_env.dig(:PERMISSIONS, :manage_rubrics)%> <% provide :right_side do %> <%= t('buttons.add_rubric', 'Add Rubric') %> <% end %> <% end %> <% end %>

<% case @context.class.to_s %> <% when 'Course' %> <%= t 'course_rubrics', "Course Rubrics" %> <% when 'User' %> <%= t 'user_rubrics', "User Rubrics" %> <% when 'Account' %> <%= t 'account_rubrics', "Account Rubrics" %> <% end %>

<% if @context.class.to_s == 'Account' %>
<% end %>
<%= render :partial => "shared/find_outcome" %> <%= render :partial => "shared/rubric", :object => nil, :locals => {:for_context => true} %> <%= render :partial => "shared/rubric_criterion_dialog" %>