|
|
@@ -1,23 +1,18 @@
|
|
|
-<h1>{{title}}</h1>
|
|
|
-<ul *ngIf="notificationService.hasMessages">
|
|
|
- <li *ngFor="let msg of notificationService.messages" [ngClass]="msg.classes">
|
|
|
- {{ msg.message }} <button *ngIf="msg.isDismissable" (click)="msg.dispose()">Dismiss</button>
|
|
|
- </li>
|
|
|
-</ul>
|
|
|
-<ul>
|
|
|
- <li><a [routerLink]="['/']">Home</a></li>
|
|
|
- <li><a [routerLink]="['/tracks']">Tracks</a></li>
|
|
|
- <li><a [routerLink]="['/tracks/edit/new']">Create Track</a></li>
|
|
|
- <li><a href="#" (click)="logout()">Logout</a></li>
|
|
|
-</ul>
|
|
|
-<div *ngIf="showLoadingBlock()">
|
|
|
- Loading...
|
|
|
-</div>
|
|
|
-<router-outlet *ngIf="showRouterOutlet()"></router-outlet>
|
|
|
-<div *ngIf="showLoginBlock()">
|
|
|
- Not authenticated
|
|
|
- <button type="button" (click)="login()">Login</button>
|
|
|
-</div>
|
|
|
-<div *ngIf="showPermissionBlock()">
|
|
|
- Your account has not yet been granted the necessary permissions to use this application, please contact your administrator.
|
|
|
-</div>
|
|
|
+<app-main-menu>
|
|
|
+ <ul *ngIf="notificationService.hasMessages">
|
|
|
+ <li *ngFor="let msg of notificationService.messages" [ngClass]="msg.classes">
|
|
|
+ {{ msg.message }} <button *ngIf="msg.isDismissable" (click)="msg.dispose()">Dismiss</button>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <div *ngIf="showLoadingBlock()">
|
|
|
+ Loading...
|
|
|
+ </div>
|
|
|
+ <router-outlet *ngIf="showRouterOutlet()"></router-outlet>
|
|
|
+ <div *ngIf="showLoginBlock()">
|
|
|
+ Not authenticated
|
|
|
+ <button type="button" (click)="login()">Login</button>
|
|
|
+ </div>
|
|
|
+ <div *ngIf="showPermissionBlock()">
|
|
|
+ Your account has not yet been granted the necessary permissions to use this application, please contact your administrator.
|
|
|
+ </div>
|
|
|
+</app-main-menu>
|