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 cfc4393 commit 3ea7d11
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions theme/boost/templates/core/navbar.mustache
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 3ea7d11

Please sign in to comment.