blob: 074ca762ec9626c60ce3a82d33363a52ffda8285 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<div id="box">
@if ((authService.getCurrentUserSubject() | async)?.type === userType.MANAGER) {
<h1>Admin Dashboard</h1>
<span>_ Registered users</span>
<span *ngIf="count"> {{count | async}} </span>
<span>_ Fulfilled needs</span>
<app-mini-need-list [needList]="fulfilledNeeds.getValue()" label="Fulfilled needs"> </app-mini-need-list>
<span>_ Most fulfilled needs</span>
<app-mini-need-list [needList]="mostFulfilledNeeds.getValue()" label="Most fulfilled"> </app-mini-need-list>
<span>_ Total monetary contributions</span>
<span *ngIf="totalDonations">${{totalDonations | async}} </span>
<span>_ </span>
} @else {
<h1>Unauthorized</h1>
<span>This page requires you to be logged in as an admin! <a routerLink="/login">Log In</a></span>
}
</div>
|