forked from Qihoo360/wayne
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnav.component.html
More file actions
34 lines (29 loc) · 1.24 KB
/
nav.component.html
File metadata and controls
34 lines (29 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<header style="background-color: #1D2143" class="header">
<div class="branding">
<a routerLink="/admin/reportform/overview" class="nav-link">
<img src="assets/images/wayne-logo.svg" width="60px" alt="">
<span class="title">{{getTitle()}}</span>
</a>
</div>
<div class="header-actions">
<wayne-dropdown size="small">
<clr-icon shape="world" style="margin-right: 5px"></clr-icon>
{{showLang(currentLang)}}
<clr-icon shape="caret down" size="12" style="margin-left: 5px;"></clr-icon>
<wayne-dropdown-item>
<ng-container *ngFor="let lang of translate.getLangs()">
<span (click)="changeLang(lang)">{{showLang(lang)}}</span>
</ng-container>
</wayne-dropdown-item>
</wayne-dropdown>
<wayne-dropdown size="small">
<clr-icon shape="user" style="margin-right: 5px"></clr-icon>
{{authService.currentUser?.display}}
<clr-icon shape="caret down" size="12" style="margin-left: 5px;"></clr-icon>
<wayne-dropdown-item>
<span (click)="goFront()" *ngIf="authService.currentUser.admin">返回前台</span>
<span href="javascript:void(0)" (click)="logout()">注销登录</span>
</wayne-dropdown-item>
</wayne-dropdown>
</div>
</header>