walnut.js/lib/com.daplie.walnut.current/views/nav.html

22 lines
1.2 KiB
HTML
Raw Normal View History

<!--.navbar.navbar-default.navbar-fixed-top-->
<div ng-controller="NavController as NC" class="navbar navbar-default navbar-fixed-top aj-navbar">
<div class="container">
<div class="navbar-header"><a href="#/" class="navbar-brand"><span>Daplie Connect</span><img width="32" ng-src="images/daplie-logo-circle.png" class="navbar-logo img aj-main-logo pull-left"/></a>
<div>
<button type="button" ng-init="navCollapsed = true" ng-click="navCollapsed = !navCollapsed" class="navbar-toggle"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button>
</div>
</div>
<div ng-class="!navCollapsed &amp;&amp; 'in'" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li ng-if="!NC.session.accounts.length"><a href="" ng-click="NC.showLoginModal()">Login</a></li>
<li ng-if="NC.session.accounts.length" class="dropdown"><a id="account" data-toggle="dropdown" href="" class="dropdown-toggle">Account<span class="caret"></span></a>
<ul aria-labelledby="account" class="dropdown-menu">
<li><a href="" ng-click="NC.logout()">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>