2016-05-11 09:57:52 +02:00
|
|
|
<div ng-if="!vm.isLoggedIn" class="dropdown">
|
|
|
|
<a id="dLabel" role="button" data-toggle="dropdown" class="btn btn-link" data-target="#" href="">
|
2016-05-13 12:48:06 +02:00
|
|
|
<span class="glyphicon glyphicon-globe"></span> //vm.languageName//
|
2016-05-11 09:57:52 +02:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
|
2016-05-13 12:48:06 +02:00
|
|
|
<li><a href="javascript:void(0);" ng-click="vm.setLanguage('en-US')">English</a></li>
|
|
|
|
<li><a href="javascript:void(0);" ng-click="vm.setLanguage('zh-CN')">中文</a></li>
|
2016-05-11 09:57:52 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2016-05-10 12:43:52 +02:00
|
|
|
|
|
|
|
<div ng-if="vm.isLoggedIn" class="dropdown">
|
|
|
|
<a id="dLabel" role="button" data-toggle="dropdown" class="btn btn-link" data-target="#" href="">
|
|
|
|
<span class="glyphicon glyphicon-user"></span> //vm.username//
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
|
2016-05-13 12:48:06 +02:00
|
|
|
<li><a href="/ng/account_setting"><span class="glyphicon glyphicon-pencil"></span> // 'account_setting' | tr //</a></li>
|
2016-05-10 12:43:52 +02:00
|
|
|
<li class="dropdown-submenu">
|
2016-05-13 12:48:06 +02:00
|
|
|
<a tabindex="-1" href="#"><span class="glyphicon glyphicon-globe"></span> //vm.languageName//</a>
|
2016-05-10 12:43:52 +02:00
|
|
|
<ul class="dropdown-menu">
|
2016-05-13 12:48:06 +02:00
|
|
|
<li><a href="javascript:void(0);" ng-click="vm.setLanguage('en-US')">English</a></li>
|
|
|
|
<li><a href="javascript:void(0);" ng-click="vm.setLanguage('zh-CN')">中文</a></li>
|
2016-05-10 12:43:52 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="divider"></li>
|
2016-05-13 12:48:06 +02:00
|
|
|
<li><a href="javascript:void(0)" ng-click="vm.logOut()"><span class="glyphicon glyphicon-log-out"></span> // 'log_out' | tr //</a></li>
|
2016-05-10 12:43:52 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|