aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/app.component.html
blob: 72776828f92f9abd9c41073404baa74cd0857544 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div id="scroll">
    <div id="header">
        <div>
            <a routerLink="/">
                <h1>Jelly Solutions</h1>
            </a>
        </div>
        <div>
            <a [class]="location.path() == '/dashboard' ? 'current' : ''" *ngIf="(currentUser | async)?.type === userType.MANAGER" routerLink="/dashboard">Dashboard</a>
            <a [class]="location.path() == '/cupboard' ? 'current' : ''" routerLink="/cupboard">Cupboard</a>
            <a [class]="location.path() == '/basket' ? 'current' : ''" *ngIf="(currentUser | async)?.type === userType.HELPER" routerLink="/basket">Basket</a>
            <button *ngIf="currentUser | async" (click)="logout()">Log Out</button>
            <button *ngIf="!(currentUser | async)" (click)="login()">Log In</button>
            <a href="#" (click)="$event.preventDefault(); toggleColorScheme()"><span class="icon">brightness_7</span></a>
        </div>
    </div>

    <router-outlet />
</div>
<div *ngIf="modalService.getModalBehaviorSubject() | async" class="modal">
    <ng-container [ngTemplateOutlet]="modalService.getModalBehaviorSubject() | async" />
</div>