Hide language in admin panel

master
Mark Moffat 2019-12-30 17:49:04 +10:30
parent b52c839216
commit 5644a3a5af
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@
</button> </button>
<div id="navbarText"> <div id="navbarText">
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
{{#unless admin}}
{{#ifCond @root.config.enableLanguages "!=" false}} {{#ifCond @root.config.enableLanguages "!=" false}}
<div class="dropdown"> <div class="dropdown">
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@ -110,6 +111,7 @@
</div> </div>
</div> </div>
{{/ifCond}} {{/ifCond}}
{{/unless}}
{{#unless admin}} {{#unless admin}}
{{#if @root.session.cart}} {{#if @root.session.cart}}
<li class="nav-item"><a href="/checkout/cart" class="btn menu-btn"><i class="fa fa-shopping-cart" aria-hidden="true"></i> {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">{{@root.session.cartTotalItems}}</span></a></li> <li class="nav-item"><a href="/checkout/cart" class="btn menu-btn"><i class="fa fa-shopping-cart" aria-hidden="true"></i> {{ @root.__ "Cart" }} <span class="badge badge-danger" id="cart-count">{{@root.session.cartTotalItems}}</span></a></li>