-
Notifications
You must be signed in to change notification settings - Fork 6
/
overview.component.html
60 lines (58 loc) · 2.21 KB
/
overview.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<div class="content extra-large middle">
<dasch-swiss-app-progress-indicator *ngIf="isProjectsLoading$ | async"></dasch-swiss-app-progress-indicator>
<div class="overview">
<!-- user is a system admin -->
<div *ngIf="(isSysAdmin$ | async) && (isProjectsLoading$ | async) === false">
<!-- list all projects -->
<div class="title-bar admin">
<div class="title">
<p>Browse Research Projects</p>
</div>
</div>
<div class="project-tiles">
<div *ngFor="let proj of allProjects$ | async; trackBy: trackByFn" class="project-tile-container">
<app-project-tile [project]="proj" [sysAdmin]="true"></app-project-tile>
</div>
</div>
</div>
<!-- user is logged in and not a system admin -->
<div *ngIf="(isSysAdmin$ | async) === false && (user$ | async)">
<div class="title-bar">
<div class="title">
<p>My Projects</p>
</div>
</div>
<div class="project-tiles">
<div *ngFor="let userProj of userActiveProjects$ | async; trackBy: trackByFn" class="project-tile-container">
<app-project-tile [project]="userProj" [sysAdmin]="false"></app-project-tile>
</div>
</div>
<div class="title-bar other-projects">
<div class="title">
<p>Browse Other Research Projects</p>
</div>
</div>
<div class="project-tiles">
<div
*ngFor="let otherProj of userOtherActiveProjects$ | async; trackBy: trackByFn"
class="project-tile-container">
<app-project-tile [project]="otherProj" [sysAdmin]="false"></app-project-tile>
</div>
</div>
</div>
<!-- user is not logged in -->
<div *ngIf="((isProjectsLoading$ | async) === false) && user$ | async | isFalsy">
<!-- list all projects -->
<div class="title-bar admin">
<div class="title">
<p>Browse Research Projects</p>
</div>
</div>
<div class="project-tiles">
<div *ngFor="let proj of allActiveProjects$ | async; trackBy: trackByFn" class="project-tile-container">
<app-project-tile [project]="proj" [sysAdmin]="false"></app-project-tile>
</div>
</div>
</div>
</div>
</div>