mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 17:17:46 +01:00
31 lines
1.4 KiB
HTML
31 lines
1.4 KiB
HTML
{{if eq .HasLoggedIn true }}
|
|
<div class="dropdown">
|
|
<a role="button" data-toggle="dropdown" class="btn btn-link" data-target="#" href="">
|
|
<span class="glyphicon glyphicon-user"></span> {{ .Username }}
|
|
</a>
|
|
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
|
|
<li><a href="/account_setting"><span class="glyphicon glyphicon-pencil"></span> // 'account_setting' | tr //</a></li>
|
|
<li class="dropdown-submenu">
|
|
<a tabindex="-1" href="#"><span class="glyphicon glyphicon-globe"></span> //vm.languageName//</a>
|
|
<ul class="dropdown-menu">
|
|
{{ range $key, $value := .SupportLanguages }}
|
|
<li><a href="javascript:void(0);" ng-click="vm.setLanguage('{{ $key }}')">{{ $value.Name }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</li>
|
|
<li class="divider"></li>
|
|
<li><a href="javascript:void(0)" ng-click="vm.logOut()"><span class="glyphicon glyphicon-log-out"></span> // 'log_out' | tr //</a></li>
|
|
</ul>
|
|
</div>
|
|
{{ else }}
|
|
<div class="dropdown">
|
|
<a role="button" data-toggle="dropdown" class="btn btn-link" data-target="#" href="">
|
|
<span class="glyphicon glyphicon-globe"></span> //vm.languageName//
|
|
</a>
|
|
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
|
|
{{ range $key, $value := .SupportLanguages }}
|
|
<li><a href="javascript:void(0);" ng-click="vm.setLanguage('{{ $key }}')">{{ $value.Name }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }} |