<% # 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 . %> <% js_bundle :select_content_dialog %> <% css_bundle :select_content_dialog %> <% css_bundle :react_files %> <% only ||= nil # only is an optimization, so that tabs that aren't going to be used won't have their data loaded %> <% lti_app_placements ||= [] %> <% new_quizzes_enabled = NewQuizzesFeaturesHelper.new_quizzes_enabled?(@context) new_quizzes_by_default = new_quizzes_enabled && @context.feature_enabled?(:new_quizzes_by_default) newquizzes_engine_selected = @context.settings.dig(:engine_selected, :user_id, :newquizzes_engine_selected) newquizzes_engine_selected = ['true', 'false'].include?(newquizzes_engine_selected) ? newquizzes_engine_selected : nil add_assignment_permission = @context.root_account.feature_enabled?(:granular_permissions_manage_assignments) ? :manage_assignments_add : :manage_assignments module_links_default_new_tab = @current_user&.get_preference(:module_links_default_new_tab) %> <% js_env :NEW_QUIZZES_BY_DEFAULT => new_quizzes_by_default %> <% cache([@context, 'select_context_content_dialog_1', only].cache_key) do %> <% end %>