2016-07-07 18:03:32 +02:00
|
|
|
<!--
|
|
|
|
Copyright (c) 2016 VMware, Inc. All Rights Reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
2016-05-21 05:26:19 +02:00
|
|
|
{{if eq .HasLoggedIn true }}
|
|
|
|
<div class="dropdown">
|
2016-05-20 11:43:47 +02:00
|
|
|
<a role="button" data-toggle="dropdown" class="btn btn-link" data-target="#" href="">
|
2016-05-21 05:26:19 +02:00
|
|
|
<span class="glyphicon glyphicon-user"></span> {{ .Username }}
|
2016-05-10 12:43:52 +02:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
|
2016-06-22 09:15:25 +02:00
|
|
|
{{ if eq .AddNew true }}
|
2016-09-06 09:33:50 +02:00
|
|
|
<li><a href="/add_new"><span class="glyphicon glyphicon-plus"></span> // 'add_new_title' | tr //</a></li>
|
2016-06-22 09:15:25 +02:00
|
|
|
{{ end }}
|
2016-09-06 09:33:50 +02:00
|
|
|
<li><a href="/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-09-06 09:33:50 +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-06-20 10:05:14 +02:00
|
|
|
<li ng-repeat="(key, value) in vm.supportLanguages"><a href="javascript:void(0);" ng-click="vm.setLanguage(key)">// value //</a></li>
|
2016-05-10 12:43:52 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
2016-09-06 09:33:50 +02:00
|
|
|
<li><a href="javascript:void(0)" ng-click="vm.about()"><span class="glyphicon glyphicon-info-sign"></span> // 'about' | tr //</a></li>
|
2016-05-10 12:43:52 +02:00
|
|
|
<li class="divider"></li>
|
2016-09-06 09:33:50 +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>
|
2016-05-20 11:43:47 +02:00
|
|
|
</div>
|
2016-05-21 05:26:19 +02:00
|
|
|
{{ else }}
|
|
|
|
<div class="dropdown">
|
2016-05-20 11:43:47 +02:00
|
|
|
<a role="button" data-toggle="dropdown" class="btn btn-link" data-target="#" href="">
|
2016-09-06 09:33:50 +02:00
|
|
|
<span class="glyphicon glyphicon-globe"></span> //vm.languageName//
|
2016-05-20 11:43:47 +02:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
|
2016-06-20 10:05:14 +02:00
|
|
|
<li ng-repeat="(key, value) in vm.supportLanguages"><a href="javascript:void(0);" ng-click="vm.setLanguage(key)">// value //</a></li>
|
2016-05-20 11:43:47 +02:00
|
|
|
</ul>
|
2016-05-21 05:26:19 +02:00
|
|
|
</div>
|
|
|
|
{{ end }}
|