mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
<nav class="navbar navbar-inverse navbar-static-top">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
|
|
aria-expanded="false" aria-controls="navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="#"><img src="assets/icon_inv.png" style="max-height: 26px; display: inline;"/>
|
|
{{title}}</a>
|
|
</div>
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li class="active"><a [routerLink]="['/gallery','/']">Gallery</a></li>
|
|
<li><a [routerLink]="['/admin']">Admin</a></li>
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right" *ngIf="authenticationRequired">
|
|
<li>
|
|
<p class="navbar-text" *ngIf="user.value">{{user.value.name}}</p>
|
|
</li>
|
|
<li>
|
|
<a style="cursor: pointer" (click)="logout()">Logout</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<ng-content select="[navbar]"></ng-content>
|
|
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</nav>
|
|
<ng2-slim-loading-bar></ng2-slim-loading-bar>
|
|
<ng-content select="[body]"></ng-content>
|