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