2024-02-17 12:35:03 +05:30
|
|
|
<div fxLayout="column" fxLayoutAlign="stretch" fxFlexFill>
|
|
|
|
<mat-toolbar fxFlex="2em" id='top-toolbar'>
|
|
|
|
<span
|
|
|
|
style='font-family:GisafSymbols'
|
2024-03-20 10:48:33 +05:30
|
|
|
matTooltip="Gisaf v. {{ (configService.conf | async).bsData?.version }}"
|
2024-02-17 12:35:03 +05:30
|
|
|
matTooltipPosition="below"
|
|
|
|
class='gisafIcon'
|
|
|
|
>
|
|
|
|

|
|
|
|
</span>
|
|
|
|
<a id='title' routerLink="/admin"
|
|
|
|
matTooltip='Go to admin'
|
|
|
|
routerLinkActive="active"
|
|
|
|
>
|
|
|
|
{{ title }}
|
|
|
|
</a>
|
|
|
|
<span class="fill-space"></span>
|
|
|
|
<nav>
|
|
|
|
<a mat-raised-button
|
|
|
|
*ngFor="let route of routes"
|
|
|
|
[routerLink]="route.target"
|
|
|
|
routerLinkActive="active">
|
|
|
|
<mat-icon>{{ route.icon }}</mat-icon>
|
|
|
|
{{ route.text }}
|
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
<span class="fill-space"></span>
|
2024-03-20 10:48:33 +05:30
|
|
|
<span *ngIf="(configService.conf | async).bsData?.user; else login" class="auth-indicator">
|
2024-02-17 12:35:03 +05:30
|
|
|
<nav>
|
|
|
|
<a mat-icon-button
|
|
|
|
(click)='this.authenticationService.logout()'
|
|
|
|
aria-label="Log out"
|
2024-03-20 10:48:33 +05:30
|
|
|
matTooltip="User: {{ (configService.conf | async ).bsData?.user.username }}. Click to log out">
|
2024-02-17 12:35:03 +05:30
|
|
|
<mat-icon>verified_user</mat-icon>
|
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
</span>
|
|
|
|
</mat-toolbar>
|
|
|
|
<div fxFlex>
|
|
|
|
<router-outlet></router-outlet>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ng-template #login>
|
|
|
|
<nav>
|
|
|
|
<a mat-icon-button routerLink="/login" routerLinkActive="active" aria-label="Log in" matTooltip="Log in">
|
|
|
|
<mat-icon>account_circle</mat-icon>
|
|
|
|
</a>
|
|
|
|
</nav>
|
|
|
|
</ng-template>
|