Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor(project): bring back the old description and keyword info * fix(project): refactor project form * fix(project): refactor code
- Loading branch information
1 parent
3051a67
commit a7563a3
Showing
3 changed files
with
72 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,63 @@ | ||
<app-progress-indicator *ngIf="loading"></app-progress-indicator> | ||
|
||
<div *ngIf="!loading && project"> | ||
<div class="content large middle"> | ||
<!-- mobile version: status and edit icon displayed before the title --> | ||
<div class="app-toolbar-mobile"> | ||
<span class="app-toolbar-action-status"> | ||
<div *ngIf="!loading && project" class="content large middle"> | ||
<!-- mobile version: status and edit icon displayed before the title --> | ||
<div class="app-toolbar-mobile"> | ||
<span class="app-toolbar-action-status"> | ||
<span [class.active]="project.status" class="badge status"> | ||
<span *ngIf="project.status">Active</span> | ||
<span *ngIf="!project.status">Deactivated</span> | ||
</span> | ||
</span> | ||
<span class="fill-remaining-space-action"></span> | ||
<span class="app-toolbar-action-edit"> | ||
<button mat-icon-button *ngIf="projectAdmin && project.status" | ||
(click)="openDialog('editProject', project.shortname, project.shortcode)" class="right"> | ||
<mat-icon>edit</mat-icon> | ||
</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"> | ||
<span [class.active]="project.status" class="badge status"> | ||
<span *ngIf="project.status">Active</span> | ||
<span *ngIf="!project.status">Deactivated</span> | ||
</span> | ||
</span> | ||
<span class="fill-remaining-space-action"></span> | ||
<span class="app-toolbar-action-edit"> | ||
<button mat-icon-button | ||
*ngIf="projectAdmin && project.status" | ||
(click)="openDialog('editProject', project.shortname, project.shortcode)" | ||
class="right"> | ||
</div> | ||
<div class="app-toolbar-row"> | ||
<h2 class="mat-title"> | ||
{{ project.longname }} | ||
</h2> | ||
<span class="fill-remaining-space"></span> | ||
<span class="app-toolbar-action"> | ||
<button mat-icon-button *ngIf="projectAdmin && project.status" | ||
(click)="openDialog('editProject', project.shortname, project.shortcode)" class="right"> | ||
<mat-icon>edit</mat-icon> | ||
</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"> | ||
<span [class.active]="project.status" class="badge status"> | ||
<span *ngIf="project.status">Active</span> | ||
<span *ngIf="!project.status">Deactivated</span> | ||
</span> | ||
</span> | ||
</div> | ||
<div class="app-toolbar-row"> | ||
<h2 class="mat-title"> | ||
{{ project.longname }} | ||
</h2> | ||
<span class="fill-remaining-space"></span> | ||
<span class="app-toolbar-action"> | ||
<button mat-icon-button | ||
*ngIf="projectAdmin && project.status" | ||
(click)="openDialog('editProject', project.shortname, project.shortcode)" | ||
class="right"> | ||
<mat-icon>edit</mat-icon> | ||
</button> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- description --> | ||
<section class="project description" *ngFor="let description of project.description"> | ||
<div [innerHtml]="description.value"></div> | ||
</section> | ||
|
||
<mat-divider *ngIf="project.keywords.length > 0"></mat-divider> | ||
|
||
<!-- keywords --> | ||
<section class="project keywords"> | ||
<mat-chip-list> | ||
<mat-chip *ngFor="let k of project.keywords">{{k}}</mat-chip> | ||
</mat-chip-list> | ||
</section> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters