<% # 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, join_title(t(:page_title, "Course Details"), @context.name) css_bundle :course_settings js_bundle :course_settings set_active_tab "settings" can_manage = can_do(@context, @current_user, :manage) can_manage_courses = can_do(@context.account, @current_user, :manage_courses, :manage_courses_admin) can_rename_course = can_manage_courses || (can_manage && !@context.root_account.settings[:prevent_course_renaming_by_teachers]) can_change_course_availability = can_manage_courses || (can_manage && !@context.root_account.settings[:prevent_course_availability_editing_by_teachers]) can_manage_master_courses = can_manage_courses && can_do(@context.account, @current_user, :manage_master_courses) has_multiple_sections = @context.course_sections.active.count > 1 show_publish_controls = can_do(@context, @current_user, :change_course_state, :manage_courses_publish) && (@context.unpublished? || @context.unpublishable?) is_master_course = MasterCourses::MasterTemplate.is_master_course?(@context) blueprint_subscription = @context.master_course_subscriptions.active.first master_course = blueprint_subscription&.master_template&.course can_see_restrict_quantitative_setting = ((@context&.restrict_quantitative_data || @context&.account&.restrict_quantitative_data[:value]) && @context&.root_account&.feature_enabled?(:restrict_quantitative_data)) if @context.elementary_subject_course? navigation_help_text = t("help.edit_navigation_k5", "Drag and drop items to reorder them in the subject navigation.") disabled_tab_text = t("tab_hidden_if_disabled_k5", "Tab disabled, won't appear in subject navigation") else navigation_help_text = t("help.edit_navigation", "Drag and drop items to reorder them in the course navigation.") disabled_tab_text = t("tab_hidden_if_disabled", "Page disabled, won't appear in navigation") end %> <% provide :right_side do %> <%= render :partial => 'settings_sidebar', :locals => { blueprint_subscription: blueprint_subscription, show_publish_controls: show_publish_controls } %> <% end %>

<%= t 'course_settings_title', "Course Settings" %>

<% if Account.site_admin.grants_any_right?(@current_user, :manage_courses, :manage_courses_admin) %> <% end %>