<% # Copyright (C) 2012 - 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 . %> <% js_bundle :settings_sidebar css_bundle :settings_sidebar %> <% blueprint_subscription ||= nil %> <% show_publish_controls ||= false %> <% if blueprint_subscription %> <% end %>
<% if show_publish_controls %>

<%= t('headers.course_status', %{Course Status}) %>

<% end %> <%= external_tools_menu_items(@course_settings_sub_navigation_tools, {link_class: "Button Button--link Button--link--has-divider Button--course-settings course-settings-sub-navigation-lti", settings_key: :course_settings_sub_navigation, remove_space_between_icon_and_text: true}) %> <% if can_do(@context, @current_user, :read_reports) %> <%= link_to context_url(@context, :context_statistics_url), :class => ' Button Button--link Button--link--has-divider Button--course-settings' do %> <%= t('links.stats', 'Course Statistics') %> <% end %> <% end %> <% if can_do(@context, @current_user, :read) %> <%= link_to calendar_url_for(@context), :class => 'Button Button--link Button--link--has-divider Button--course-settings', :id => 'course_calendar_link' do %> <%= t('links.calendar', 'Course Calendar') %> <% end %> <% end %> <% if can_do(@context, @current_user, :change_course_state, :manage_courses_conclude) %> <% if @context.completed? %> <%= form_tag context_url(@context, :context_unconclude_url) do %> <% end %> <% elsif [email protected]_concluded? %> <%= link_to context_url(@context, :context_confirm_action_url, :event => 'conclude'), :class => 'Button Button--link Button--link--has-divider Button--course-settings' do %> <%= t('links.conclude', 'Conclude this Course') %> <% end %> <% end %> <% end %> <% if can_do(@context, @current_user, :delete) && [email protected]? %> <%= link_to context_url(@context, :context_confirm_action_url, :event => 'delete'), :class => 'Button Button--link Button--link--has-divider Button--course-settings' do %> <%= t('links.delete', 'Delete this Course') %> <% end %> <% end %> <% if can_do(@context, @current_user, :read) && show_user_create_course_button(@current_user, @context.account) %> <%= link_to context_url(@context, :context_start_copy_url), :class => 'Button Button--link Button--link--has-divider Button--course-settings copy_course_link' do %> <%= t('links.copy', 'Copy this Course') %> <% end %> <% end %> <% if can_do(@context, @current_user, :manage_content, :manage_course_content_add) %> <%= link_to context_url(@context, :context_content_migrations_url), :class => 'Button Button--link Button--link--has-divider Button--course-settings import_content' do %> <%= t('links.import', 'Import Course Content') %> <% end %> <% end %> <% if can_do(@context, @current_user, :read) %> <%= link_to context_url(@context, :course_content_exports_url), :class => 'Button Button--link Button--link--has-divider Button--course-settings' do %> <%= t('links.export_content', 'Export Course Content') %> <% end %> <% end %> <% if can_do(@context, @current_user, :reset_content) && !MasterCourses::MasterTemplate.is_master_course?(@context) %> <%= link_to context_url(@context, :course_reset_url), :class => ' Button Button--link Button--link--has-divider Button--course-settings reset_course_content_button' do %> <%= t('links.reset', 'Reset Course Content') %> <% end %>
id="reset_course_content_dialog">

<%= mt('help.reset_course_content', 'Resetting course content will permanently delete all associated assignments, discussions, quizzes, modules, rubrics, pages, files, learning outcomes, question banks, collaborations, conferences, or any other content. This action is irreversible, and the data *cannot* be recovered. Are you sure you wish to continue?') %>

<%= form_for @context, :url => context_url(@context, :course_reset_url), :html => { :method => :post } do %>
<% end %>
<% end %> <% if can_do(@context, @current_user, :manage_content, *RoleOverride::GRANULAR_MANAGE_COURSE_CONTENT_PERMISSIONS) %> <%= link_to context_url(@context, :course_link_validator_url), :class => 'Button Button--link Button--link--has-divider Button--course-settings validator_link' do %> <%= t('Validate Links in Content') %> <% end %> <% if blueprint_subscription %> <%= link_to "#", :onclick => 'gotoBlueprintInfo()', :class => 'Button Button--link Button--link--has-divider Button--course-settings blueprint_information_button' do %> <%= t('Blueprint Information') %> <% end %> <% end %> <% end %> <% @all_roles.each do |base_role| %> <% base_role[:custom_roles].each do |cr| next if skip_custom_role?(cr) %> <% end %> <% end %>

<%= t('headings.current_users', 'Current Users') %>

<%= base_role[:plural_label] %>: <%= n(user_count(base_role[:count])) %>
<%= cr[:label] %><% if cr[:workflow_state] == 'inactive' %> (<%= t('role.inactive', 'inactive') %>)<% end %>: <%= n(user_count(cr[:count])) %>