gisaf-frontend/src/app/app.component.html

50 lines
1.7 KiB
HTML
Raw Normal View History

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'
matTooltip="Gisaf v. {{ (configService.conf | async).bsData?.version }}"
2024-02-17 12:35:03 +05:30
matTooltipPosition="below"
class='gisafIcon'
>
&#xE001;
</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>
<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"
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>