Merge branch 'MDL-62145-master' of git://github.com/damyon/moodle
[moodle.git] / theme / boost / templates / core / custom_menu_item.mustache
1 {{^divider}}
2 {{#haschildren}}
3 <li class="dropdown nav-item">
4     <a class="dropdown-toggle nav-link" id="drop-down-{{uniqid}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#" aria-controls="drop-down-menu-{{uniqid}}">
5         {{{text}}}
6     </a>
7     <div class="dropdown-menu" role="menu" id="drop-down-menu-{{uniqid}}" aria-labelledby="drop-down-{{uniqid}}">
8         {{#children}}
9             {{^divider}}
10                 <a class="dropdown-item" role="menuitem" href="{{{url}}}" {{#title}}title="{{{title}}}"{{/title}}>{{{text}}}</a>
11             {{/divider}}
12             {{#divider}}
13                 <div class="dropdown-divider" role="presentation"></div>
14             {{/divider}}
15         {{/children}}
16     </div>
17 </li>
18 {{/haschildren}}
19 {{^haschildren}}
20 <li class="nav-item">
21     <a class="nav-item nav-link" href="{{{url}}}" {{#title}}title="{{{title}}}"{{/title}}>{{{text}}}</a>
22 </li>
23 {{/haschildren}}
24 {{/divider}}