%
# 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)%>
<% 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 %>
<% @rubric_associations.each do |association| %>
<% rubric = association.rubric %>