Added nav-bar to show home link and user status
This commit is contained in:
1 parent
04fb6dfcab
commit
05860fb0b9
9 files changed
+82
-31
No files matched your search
@@ -1,10 +1,4 @@
|
||||
<div fxLayout="row wrap" fxLayoutGap="grid 20px">
|
||||
<mat-card fxLayout="column" class="square-button" matRipple [routerLink]="['/', 'login']" *ngIf="!(user | async)">
|
||||
<h3 class="item-name">
|
||||
<mat-icon>account_box</mat-icon>
|
||||
Login
|
||||
</h3>
|
||||
</mat-card>
|
||||
<mat-card fxLayout="column" class="square-button" matRipple *ngIf="auth.hasPermission('Guest Book')" [routerLink]="['/', 'guest-book']">
|
||||
<h3 class="item-name">Guest Book</h3>
|
||||
</mat-card>
|
||||
@@ -74,10 +68,4 @@
|
||||
<mat-card fxLayout="column" class="square-button" matRipple *ngIf="auth.hasPermission('Users')" [routerLink]="['/', 'users']">
|
||||
<h3 class="item-name">Users</h3>
|
||||
</mat-card>
|
||||
<mat-card fxLayout="column" class="square-button" matRipple [routerLink]="['/', 'logout']"
|
||||
*ngIf="user | async as name">
|
||||
<h3 class="item-name">
|
||||
<mat-icon>account_box</mat-icon>
|
||||
Logout {{name}}</h3>
|
||||
</mat-card>
|
||||
</div>
|
||||
Reference in new issue
Block a user