harbor/static/ng/resources/js/components/optional-menu/optional-menu.directive.html

22 lines
999 B
HTML

<ul class="nav navbar-nav navbar-left">
<li ng-show="//!vm.isLoggedIn//" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-globe"></span>Language<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">//vm.isLoggedIn ? 'Logged In' : 'Not Logged In'//</a></li>
<li><a href="#">English</a></li>
<li><a href="#">中文</a></li>
</ul>
</li>
<li ng-show="//vm.isLoggedIn//" class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-user"></span>//vm.username//<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">//vm.username//</a></li>
<li><a href="/ng/account_setting">Account Setting</a></li>
<li><a href="#">Log Out</a></li>
</ul>
</li>
</ul>