Fixed display of languages menu

master
Mark Moffat 2019-12-28 16:44:13 +10:30
parent 4c9cdac4cb
commit e38767df9d
1 changed files with 8 additions and 6 deletions

View File

@ -95,14 +95,16 @@
<div id="navbarText">
<ul class="navbar-nav ml-auto">
{{#ifCond @root.config.enableLanguages "!=" false}}
<li class="nav-item dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ @root.__ "Languages" }} <span class="caret"></span></a>
<ul class="dropdown-menu">
<div class="dropdown">
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ @root.__ "Languages" }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
{{#availableLanguages}}
<li><a href="/lang/{{this}}">{{@root.__ this}}</a></li>
<li><a class="dropdown-item" href="/lang/{{this}}">{{@root.__ this}}</a></li>
{{/availableLanguages}}
</ul>
</li>
</div>
</div>
{{/ifCond}}
{{#unless admin}}
{{#if @root.session.cart}}