Skip to content
Snippets Groups Projects
Commit ecd8bc5b authored by Alexander Bias's avatar Alexander Bias
Browse files

Improvement: Add in-course settings only to HTML tree of the setting is enabled.

parent 4e4b77bd
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2021-08-16 - Improvement: Add in-course settings only to HTML tree of the setting is enabled.
* 2021-08-16 - Adjust activity_settings_incourse.mustache template based on changes in settings_link_page.mustache
* 2021-08-16 - Improvement: Adjusted tab appearance for in-course settings.
* 2021-08-16 - Adjusted settings_link_page.mustache template due to upstream changes in theme Boost.
......
......@@ -948,6 +948,7 @@ body.scrolled #goto-top-link {
}
/* In-course settings. */
@if (variable-exists(showsettingsincourse)) {
#boost-campus-course-settings,
#boost-campus-activity-settings {
/* Initially do not display the settings. Visibility will be changed on click with incoursesettings.js. */
......@@ -996,6 +997,7 @@ body.scrolled #goto-top-link {
#boost-campus-activity-settings {
border: none;
}
}
/* Setting to move 'Switch role to...' menu item to the course settings - but only if
setting showsettingsincourse is also enabled. */
......
......@@ -114,9 +114,11 @@
<div id="page-content" class="row pb-3 d-print-block">
<div id="region-main-box" class="col-12">
{{#incoursesettings}}
{{#node}}
{{> theme_boost_campus/settings_link_page }}
{{/node}}
{{/incoursesettings}}
{{#hasregionmainsettingsmenu}}
<div id="region-main-settings-menu" class="d-print-none {{#hasblocks}}has-blocks{{/hasblocks}}">
<div> {{{ output.region_main_settings_menu }}} </div>
......@@ -128,9 +130,11 @@
<div class="region_main_settings_menu_proxy"></div>
{{/hasregionmainsettingsmenu}}
{{{ output.course_content_header }}}
{{#incoursesettings}}
{{#activitynode}}
{{> theme_boost_campus/activity_settings_incourse }}
{{/activitynode}}
{{/incoursesettings}}
{{{ output.main_content }}}
{{{ output.activity_navigation }}}
{{{ output.course_content_footer }}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment