-
Notifications
You must be signed in to change notification settings - Fork 6
/
description.component.html
52 lines (49 loc) · 1.79 KB
/
description.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
<dasch-swiss-app-progress-indicator *ngIf="isLoading$ | async"></dasch-swiss-app-progress-indicator>
<div *ngIf="(readProject$ | async) as project" class="content large middle">
<div>
<p>Project Description</p>
</div>
<!-- mobile version: status and edit icon displayed before the title -->
<div class="app-toolbar-mobile">
<span class="app-toolbar-action-edit" *ngIf="userHasPermission$ | async">
<button mat-icon-button *ngIf="project.status" class="right" color="primary">
<mat-icon>edit_square</mat-icon>
Edit project description
</button>
</span>
</div>
<!-- desktop and tablet version -->
<div class="app-toolbar transparent more-space-bottom">
<div class="app-toolbar-row">
<h3 class="mat-body subtitle">Project {{ project.shortcode }} | {{ project.shortname | uppercase }}</h3>
<span class="fill-remaining-space"></span>
<span class="app-toolbar-action">
<button
mat-button
*ngIf="(userHasPermission$ | async) && project.status"
class="right"
[routerLink]="RouteConstants.edit"
color="primary">
<mat-icon>edit_square</mat-icon>
Edit project description
</button>
</span>
</div>
</div>
<!-- description -->
<div class="description-rm">
<div>
<p class="project-longname">{{project.longname}}</p>
</div>
<section class="project description" *ngFor="let desc of sortedDescriptions$ | async">
<div [innerHtml]="desc.value"></div>
</section>
<mat-divider *ngIf="project.keywords.length > 0"></mat-divider>
<!-- keywords -->
<section class="project keywords">
<mat-chip-listbox>
<mat-chip *ngFor="let k of project.keywords">{{k}}</mat-chip>
</mat-chip-listbox>
</section>
</div>
</div>