Fixed display of languages menu
parent
4c9cdac4cb
commit
e38767df9d
|
@ -95,14 +95,16 @@
|
||||||
<div id="navbarText">
|
<div id="navbarText">
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
{{#ifCond @root.config.enableLanguages "!=" false}}
|
{{#ifCond @root.config.enableLanguages "!=" false}}
|
||||||
<li class="nav-item dropdown">
|
<div class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ @root.__ "Languages" }} <span class="caret"></span></a>
|
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<ul class="dropdown-menu">
|
{{ @root.__ "Languages" }}
|
||||||
|
</button>
|
||||||
|
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||||
{{#availableLanguages}}
|
{{#availableLanguages}}
|
||||||
<li><a href="/lang/{{this}}">{{@root.__ this}}</a></li>
|
<li><a class="dropdown-item" href="/lang/{{this}}">{{@root.__ this}}</a></li>
|
||||||
{{/availableLanguages}}
|
{{/availableLanguages}}
|
||||||
</ul>
|
</div>
|
||||||
</li>
|
</div>
|
||||||
{{/ifCond}}
|
{{/ifCond}}
|
||||||
{{#unless admin}}
|
{{#unless admin}}
|
||||||
{{#if @root.session.cart}}
|
{{#if @root.session.cart}}
|
||||||
|
|
Loading…
Reference in New Issue