Skip to content

Commit

Permalink
MDL-62857 theme_boost: Better filtering on navbar / breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihail Geshoski authored and Jenkins committed Sep 4, 2018
1 parent cb8aefa commit f468f6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions theme/boost/templates/core/navbar.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* has_action - boolean
* action - string
* get_title - string
* text - HTML
* get_content - string
Example context (json):
{
Expand All @@ -39,21 +39,21 @@
"has_action": true,
"action": "#",
"get_title": "Test title",
"text": "First & fresh"
"get_content": "First & fresh"
},
{
"has_action": true,
"action": "#",
"get_title": "Second item & a title",
"text": "Second item"
"get_content": "Second item"
},
{
"has_action": false,
"text": "Third item"
"get_content": "Third item"
},
{
"has_action": false,
"text": "Fourth & last"
"get_content": "Fourth & last"
}
]
}
Expand All @@ -62,7 +62,7 @@
<ol class="breadcrumb">
{{#get_items}}
{{#has_action}}
<li class="breadcrumb-item"><a href="{{{action}}}" {{#get_title}}title="{{get_title}}"{{/get_title}}>{{{text}}}</a></li>
<li class="breadcrumb-item"><a href="{{{action}}}" {{#get_title}}title="{{get_title}}"{{/get_title}}>{{{get_content}}}</a></li>
{{/has_action}}
{{^has_action}}
<li class="breadcrumb-item">{{{text}}}</li>
Expand Down

0 comments on commit f468f6d

Please sign in to comment.