2016-05-01 10:28:05 +02:00
|
|
|
<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>
|
2016-04-26 15:10:05 +02:00
|
|
|
</button>
|
2016-05-01 10:28:05 +02:00
|
|
|
<a class="navbar-brand" href="#"><img src="icon_inv.png" style="max-height: 26px; display: inline;"/> PiGallery2</a>
|
|
|
|
</div>
|
|
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li class="active"><a [routerLink]="['Gallery',{directory: '/'}]">Gallery</a></li>
|
|
|
|
<li><a [routerLink]="['Admin']">Admin</a></li>
|
|
|
|
</ul>
|
2016-05-16 23:15:03 +02:00
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li>
|
2016-06-23 22:58:31 +02:00
|
|
|
<p class="navbar-text" *ngIf="user">{{user.name}}</p>
|
2016-05-16 23:15:03 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a style="cursor: pointer" (click)="logout()">Logout</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2016-05-03 21:04:57 +02:00
|
|
|
<ng-content select="[navbar]"></ng-content>
|
2016-05-16 23:15:03 +02:00
|
|
|
|
2016-05-01 10:28:05 +02:00
|
|
|
</div><!--/.nav-collapse -->
|
|
|
|
</div>
|
|
|
|
</nav>
|
2016-05-03 21:04:57 +02:00
|
|
|
<ng-content select="[body]"></ng-content>
|