1
|
<div class="navbar-wrapper container-fluid">
|
2
|
<div class="container">
|
3
|
<nav class="navbar navbar-expand-lg navbar-light">
|
4
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
5
|
<span class="navbar-toggler-icon"></span>
|
6
|
</button>
|
7
|
<div class="collapse navbar-collapse" id="navbarNav">
|
8
|
<div class="navbar-collapse collapse">
|
9
|
<ul class="navbar-nav left">
|
10
|
<li class="nav-item">
|
11
|
<a class="nav-link" [routerLink]="['/dashboard']"><h2>Dashboard</h2></a>
|
12
|
</li>
|
13
|
<li *ngIf="loggedUser.userInfo.rights == 1" class="nav-item">
|
14
|
<a class="nav-link" [routerLink]="['/administration']"><h2>Administration</h2></a>
|
15
|
</li>
|
16
|
</ul>
|
17
|
<a class="navbar-brand" href="/">
|
18
|
<h1>SensLog</h1>
|
19
|
<img class="navbar-logo" src="/assets/images/senslog.png" alt="Logo SensLog">
|
20
|
</a>
|
21
|
<ul class="navbar-nav right">
|
22
|
<li class="nav-item">
|
23
|
<a class="nav-link" href="#"><h2>User: <strong>{{loggedUser?.userName?.toUpperCase()}}</strong></h2></a>
|
24
|
</li>
|
25
|
<li class="nav-item">
|
26
|
<a class='nav-link' [routerLink]="['/login']" (click)="logOut()"><h2>Logout</h2></a>
|
27
|
</li>
|
28
|
</ul>
|
29
|
</div>
|
30
|
</div>
|
31
|
</nav>
|
32
|
</div>
|
33
|
</div>
|