2017-05-10 11:04:06 +02:00
|
|
|
<div class="container">
|
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top">
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mynavbar">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="#" style="padding-top: 2px">
|
|
|
|
<img height="40px" src="assets/opt-logo-klein.png">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse" id="mynavbar">
|
|
|
|
|
|
|
|
<ul class="nav navbar-nav">
|
2017-05-18 14:45:00 +02:00
|
|
|
<li *ngIf="!loginService.isLoggedIn()" routerLinkActive="active">
|
|
|
|
<a routerLink='/login' class="link">Login</a>
|
|
|
|
</li>
|
|
|
|
<li routerLinkActive="active">
|
2017-05-11 21:46:28 +02:00
|
|
|
<a routerLink='/cc-overview' class="link">Armeeübersicht</a>
|
|
|
|
</li>
|
2017-07-08 22:50:01 +02:00
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
|
|
|
|
aria-expanded="false">
|
|
|
|
Schlacht Statistik
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
2017-07-10 19:53:36 +02:00
|
|
|
<ul class="dropdown-menu scrollable-menu">
|
2017-07-14 23:33:17 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(3)">
|
|
|
|
<a routerLink='/cc-wars' class="link">Hinzufügen...</a>
|
|
|
|
</li>
|
2017-07-08 22:50:01 +02:00
|
|
|
<li *ngFor="let war of wars">
|
2017-07-14 23:33:17 +02:00
|
|
|
<a [routerLink]="['/cc-wars/' + war._id]">{{war.title}}
|
|
|
|
<small>{{war.date | date: 'dd.MM.yy'}}</small>
|
|
|
|
</a>
|
2017-07-08 22:50:01 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2017-06-08 16:58:28 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(2)" routerLinkActive="active">
|
2017-05-10 11:04:06 +02:00
|
|
|
<a routerLink='/cc-users' class="link">Teilnehmer</a>
|
|
|
|
</li>
|
2017-06-08 16:58:28 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(2)" routerLinkActive="active">
|
2017-05-10 11:04:06 +02:00
|
|
|
<a routerLink='/cc-squads' class="link">Squads</a>
|
|
|
|
</li>
|
2017-06-08 16:58:28 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(2)" routerLinkActive="active">
|
2017-05-10 11:04:06 +02:00
|
|
|
<a routerLink='/cc-decorations' class="link">Auszeichnungen</a>
|
|
|
|
</li>
|
2017-06-08 16:58:28 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(2)" routerLinkActive="active">
|
2017-05-10 11:04:06 +02:00
|
|
|
<a routerLink='/cc-ranks' class="link">Ränge</a>
|
|
|
|
</li>
|
2017-07-14 23:33:17 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(1) && !loginService.hasPermission(2) && loginService.hasSquad()"
|
|
|
|
class="dropdown">
|
2017-06-08 16:58:28 +02:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
|
|
|
|
aria-expanded="false">
|
|
|
|
Beantragen
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
|
|
|
<a [routerLink]="['/request-promotion']">Beförderung</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a [routerLink]="['/request-award']">Orden/ Auszeichnung</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2017-07-10 20:51:15 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(2) && loginService.hasSquad()" class="dropdown">
|
2017-06-10 22:07:32 +02:00
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
|
|
|
|
aria-expanded="false">
|
|
|
|
Anträge
|
|
|
|
<span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
|
|
|
<a [routerLink]="['/confirm-promotion']">Beförderung</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a [routerLink]="['/confirm-award']">Orden/ Auszeichnung</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2017-05-10 11:04:06 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="nav navbar-nav" style="float: right">
|
2017-06-08 16:58:28 +02:00
|
|
|
<li *ngIf="loginService.hasPermission(4)" routerLinkActive="active">
|
|
|
|
<a routerLink='/admin-panel' class="link">Admin Panel</a>
|
|
|
|
</li>
|
2017-05-10 11:04:06 +02:00
|
|
|
<li *ngIf="authEnabled" class="link" style="cursor: pointer">
|
2017-06-08 16:58:28 +02:00
|
|
|
<a *ngIf="loginService.isLoggedIn()" (click)="logout()">Abmelden</a>
|
2017-05-10 11:04:06 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<div id="left">
|
|
|
|
<router-outlet></router-outlet>
|
|
|
|
</div>
|
|
|
|
<div id="right">
|
|
|
|
<router-outlet name="right"></router-outlet>
|
|
|
|
</div>
|
|
|
|
<div id="footer">
|
|
|
|
<router-outlet name="bottom"></router-outlet>
|
|
|
|
</div>
|
|
|
|
</div>
|