1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/ui/frame/frame.component.html

79 lines
3.4 KiB
HTML
Raw Normal View History

2017-07-21 03:06:48 +08:00
<ng2-slim-loading-bar [color]="'#337ab7'" [height]="'3px'"></ng2-slim-loading-bar>
2018-05-14 04:59:57 +08:00
<nav class="navbar navbar-dark bg-dark navbar-expand-md">
<a class="navbar-brand" [routerLink]="['/gallery','/']"
[queryParams]="queryService.getParams()">
2018-05-14 04:59:57 +08:00
<img src="assets/icon_inv.png" width="30" height="30" class="d-inline-block align-top" alt="">
<strong>{{title}}</strong>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav"
aria-expanded="false" aria-label="Toggle navigation" (click)="toggleState()">
<span class="navbar-toggler-icon"></span>
</button>
2017-07-04 01:17:49 +08:00
2018-05-14 04:59:57 +08:00
<div class="collapse navbar-collapse" id="navbarNav" [collapse]="collapsed">
2019-03-03 19:11:36 +08:00
<ul class="navbar-nav mr-auto">
<li class="nav-item" [routerLinkActive]="['active']">
<a class="nav-link"
[routerLink]="['/gallery']"
[queryParams]="queryService.getParams()">Gallery</a>
</li>
<li class="nav-item" [routerLinkActive]="['active']">
<a class="nav-link" [routerLink]="['/faces']">Faces</a>
</li>
</ul>
2018-05-14 04:59:57 +08:00
<ul class="navbar-nav navbar-right ml-auto">
<ng-content select="[navbar]"></ng-content>
<li class="nav-item divider-vertical">
</li>
<li class="nav-item mr-2 ml-2" *ngIf="authenticationRequired" style=" white-space: nowrap;">
<span class="navbar-text" *ngIf="user.value">
<span class="oi oi-person"></span> {{user.value.name}}</span>
</li>
<li class="nav-item ml-2">
<app-language class="navbar-btn" isDark="true"></app-language>
</li>
2019-07-21 21:42:07 +08:00
<div class="btn-group" dropdown placement="bottom"
2019-01-28 03:58:56 +08:00
*ngIf="isAdmin() || authenticationRequired">
2019-07-21 21:42:07 +08:00
<button id="button-alignment" dropdownToggle
type="button" class="btn btn-dark dropdown-toggle"
2019-07-21 21:42:07 +08:00
aria-controls="dropdown-alignment">
<span class="oi oi-menu"></span>
2019-01-28 03:58:56 +08:00
<span *ngIf="isAdmin() && notificationService.notifications.length>0"
class="navbar-badge badge badge-warning">{{notificationService.notifications.length}}</span>
2018-05-14 04:59:57 +08:00
</button>
2019-07-21 21:42:07 +08:00
<ul id="dropdown-alignment" *dropdownMenu
class="dropdown-menu dropdown-menu-right"
2019-07-21 21:42:07 +08:00
role="menu" aria-labelledby="button-alignment">
2018-10-23 06:33:17 +08:00
<ng-content select="[navbar-menu]"></ng-content>
2019-01-18 07:26:20 +08:00
<li role="menuitem" *ngIf="isAdmin()">
<a class="dropdown-item" href="#" [routerLink]="['/duplicates']">
<span class="oi oi-layers"></span>
<ng-container i18n>duplicates</ng-container>
</a>
</li>
<li role="menuitem" *ngIf="isAdmin()">
<a class="dropdown-item" href="#" [routerLink]="['/admin']">
<span class="oi oi-wrench"></span>
2019-01-28 03:58:56 +08:00
<span *ngIf="notificationService.notifications.length>0"
class="badge">{{notificationService.notifications.length}}</span>
<ng-container i18n>Settings</ng-container>
</a>
</li>
<li role="menuitem" *ngIf="authenticationRequired">
2018-10-22 06:31:44 +08:00
<a class="dropdown-item" href="#" (click)="logout()">
<span class="oi oi-account-logout"></span>
<ng-container i18n>Logout</ng-container>
</a>
</li>
</ul>
</div>
2018-05-14 04:59:57 +08:00
</ul>
2016-05-17 05:15:03 +08:00
2018-05-14 04:59:57 +08:00
</div><!--/.nav-collapse -->
2016-05-01 16:28:05 +08:00
</nav>
<ng-content select="[body]"></ng-content>