Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
3f95330d
Commit
3f95330d
authored
4 years ago
by
Alexander Bias
Browse files
Options
Downloads
Patches
Plain Diff
Adjusted navbar.mustache due to upstream changes in theme Boost core.
parent
a390a325
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGES.md
+1
-0
1 addition, 0 deletions
CHANGES.md
templates/navbar.mustache
+24
-7
24 additions, 7 deletions
templates/navbar.mustache
templates/navbar.mustache.original
+26
-7
26 additions, 7 deletions
templates/navbar.mustache.original
with
51 additions
and
14 deletions
CHANGES.md
+
1
−
0
View file @
3f95330d
...
...
@@ -6,6 +6,7 @@ Changes
### Unreleased
*
2020-11-28 - Adjusted navbar.mustache due to upstream changes in theme Boost core.
*
2020-11-28 - Prepare compatibility for Moodle 3.10.
*
2020-11-18 - Change in Moodle release support:
For the time being, this plugin is maintained for the most recent LTS release of Moodle as well as the most recent major release of Moodle.
...
...
This diff is collapsed.
Click to expand it.
templates/navbar.mustache
+
24
−
7
View file @
3f95330d
...
...
@@ -15,9 +15,27 @@
along
with
Moodle.
If
not
,
see
<
http
:
//
www
.
gnu
.
org
/
licenses
/
>
.
}}
{{
!
@template
theme_boost_campus
/
navbar
Page
navbar.
This
template
renders
the
top
navbar.
Example
context
(
json
)
:
{
"output"
:
{
"should_display_navbar_logo"
:
true
,
"get_compact_logo_url"
:
"http://placekitten.com/50/50"
,
"custom_menu"
:
"<li>..</li>"
,
"page_heading_menu"
:
"<li>..</li>"
,
"search_box"
:
"<div><input type='text'></div>"
,
"navbar_plugin_output"
:
"<div class='dropdown'>Messaging</div>"
,
"user_menu"
:
"<div class='dropdown'>John Doe</div>"
},
"config"
:
{
"wwwroot"
:
"#"
},
"sitename"
:
"Moodle Site"
}
}}
{{
!
Modifications
:
...
...
@@ -49,19 +67,18 @@
<!-- page_heading_menu -->
{{{
output
.
page_heading_menu
}}}
</ul>
<ul
class=
"nav navbar-nav ml-auto"
>
<li
class=
"d-none d-lg-block"
>
<div
class=
"ml-auto"
>
{{{
output
.
search_box
}}}
</li>
</div>
<ul
class=
"nav navbar-nav usernav"
>
<!-- navbar_plugin_output -->
<li
class=
"nav-item"
>
{{{
output
.
navbar_plugin_output
}}}
</li>
<!-- user_menu -->
<li
class=
"nav-item
d-flex
align-items-center"
>
<li
class=
"nav-item align-items-center
pl-2
"
>
{{{
output
.
user_menu
}}}
</li>
</ul>
<!-- search_box -->
</nav>
This diff is collapsed.
Click to expand it.
templates/navbar.mustache.original
+
26
−
7
View file @
3f95330d
...
...
@@ -15,7 +15,27 @@
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
Page navbar.
@template theme_boost/navbar
This template renders the top navbar.
Example context (json):
{
"output": {
"should_display_navbar_logo": true,
"get_compact_logo_url": "http://placekitten.com/50/50",
"custom_menu": "<li>..</li>",
"page_heading_menu": "<li>..</li>",
"search_box": "<div><input type='text'></div>",
"navbar_plugin_output": "<div class='dropdown'>Messaging</div>",
"user_menu": "<div class='dropdown'>John Doe</div>"
},
"config": {
"wwwroot": "#"
},
"sitename": "Moodle Site"
}
}}
<nav class="fixed-top navbar navbar-light bg-white navbar-expand moodle-has-zindex" aria-label="{{#str}}sitemenubar, admin{{/str}}">
...
...
@@ -42,19 +62,18 @@
<!-- page_heading_menu -->
{{{ output.page_heading_menu }}}
</ul>
<ul class="nav navbar-nav ml-auto">
<li class="d-none d-lg-block">
<div class="ml-auto">
{{{ output.search_box }}}
</li>
</div>
<ul class="nav navbar-nav usernav">
<!-- navbar_plugin_output -->
<li class="nav-item">
{{{ output.navbar_plugin_output }}}
</li>
<!-- user_menu -->
<li class="nav-item
d-flex
align-items-center">
<li class="nav-item align-items-center
pl-2
">
{{{ output.user_menu }}}
</li>
</ul>
<!-- search_box -->
</nav>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment