forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-55074 theme_boost: Make sections different in flat nav
- Loading branch information
Damyon Wiese
committed
Oct 21, 2016
1 parent
8a2ab5f
commit 598b3f0
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
<nav class="nav nav-stacked nav-pills"> | ||
<nav class="list-group"> | ||
{{# flatnavigation }} | ||
{{#showdivider}} | ||
</nav> | ||
<nav class="list-group m-t-1"> | ||
{{/showdivider}} | ||
{{#get_smscreenonly}} | ||
<div class="hidden-lg-up"> | ||
{{/get_smscreenonly}} | ||
{{#showdivider}} | ||
<div class="nav-item"><hr></div> | ||
{{/showdivider}} | ||
{{#action}} | ||
<div class="nav-item"><a class="nav-link {{#isactive}}active{{/isactive}} m-l-{{get_indent}}" href="{{{action}}}">{{text}}</a></div> | ||
<a class="list-group-item list-group-item-action {{#isactive}}active{{/isactive}}" href="{{{action}}}"><span class="m-l-{{get_indent}}"> | ||
{{#is_section}} | ||
{{#pix}}i/folder{{/pix}} | ||
{{/is_section}} | ||
{{text}} | ||
</span></a> | ||
{{/action}} | ||
{{^action}} | ||
<div class="nav-item"><span class="nav-link m-l-{{get_indent}}">{{text}}</span></div> | ||
<div class="list-group-item"><span class="m-l-{{get_indent}}"> | ||
{{#is_section}} | ||
{{#pix}}i/folder{{/pix}} | ||
{{/is_section}} | ||
{{text}} | ||
</span></div> | ||
{{/action}} | ||
{{#get_smscreenonly}} | ||
</div> | ||
{{/get_smscreenonly}} | ||
{{/ flatnavigation }} | ||
</div> | ||
</nav> |