|
1 | 1 | <div *ngIf="resource"> |
2 | 2 | <mat-card *ngIf="!showResourceEditTemplate; else showResourceEditForm" class="app-resource"> |
| 3 | + |
3 | 4 | <mat-card-header class="app-resource-header"> |
| 5 | + <div class="app-resource-left-container"> |
4 | 6 | <mat-card-title class="app-resource-title">{{ resource.title }}</mat-card-title> |
5 | 7 | <mat-card-subtitle |
6 | 8 | >{{ resource.resourceType }} created by {{ resource.createdBy.name }} on |
7 | 9 | {{ resource.createdAt | dateAndTime }}</mat-card-subtitle |
8 | 10 | > |
| 11 | + <mat-card-content class="app-resource-content"> |
| 12 | + <app-quill-editor |
| 13 | + [isReadOnly]="true" |
| 14 | + [showActions]="false" |
| 15 | + [body]="form.controls['description']" |
| 16 | + ></app-quill-editor> |
| 17 | + </mat-card-content> |
| 18 | + </div> |
| 19 | + <div class="app-resource-action-section"> |
9 | 20 | <div class="app-resource-actions"> |
10 | 21 | <share-button [entity]="resource" [entityType]="entityType"></share-button> |
11 | 22 | <show-activity-button [root]="resource"></show-activity-button> |
|
45 | 56 | <span class="app-resource-actions-delete-btn-label">Delete {{ resource.resourceType }}</span> |
46 | 57 | </button> |
47 | 58 | </mat-menu> |
| 59 | + |
48 | 60 | </div> |
| 61 | + <div class="app-resource-extra-actions"> |
| 62 | + <!-- Use enum for State --> |
| 63 | + <a *ngIf="resource.resourceType === 'State'" mat-raised-button color="primary" (click)="openInTool(resource)">Open with {{ tool.title }}</a> |
| 64 | + <a *ngIf="resource.resourceType !== 'State'" mat-raised-button color="primary" (click)="open(resource)">Open {{ resource.resourceType }}</a> |
| 65 | + <a mat-raised-button color="primary" (click)="notificationService.info('Not yet implemented')" [disabled]="true">Discuss</a> |
| 66 | + <!-- <a mat-raised-button color="primary" [routerLink]="'/discussion'">Discuss</a> --> |
| 67 | + <a mat-raised-button color="primary" (click)="notificationService.info('Not yet implemented')" [disabled]="true">Create Insight</a> |
| 68 | + </div> |
| 69 | + </div> |
| 70 | + |
49 | 71 | </mat-card-header> |
50 | 72 |
|
51 | | - <mat-card-content class="app-resource-content"> |
52 | | - <app-quill-editor |
53 | | - [isReadOnly]="true" |
54 | | - [showActions]="false" |
55 | | - [body]="form.controls['description']" |
56 | | - ></app-quill-editor> |
57 | | - </mat-card-content> |
58 | 73 |
|
59 | | - <div class="app-resource-extra-actions"> |
60 | | - <!-- Use enum for State --> |
61 | | - <a *ngIf="resource.resourceType === 'State'" mat-raised-button color="primary" (click)="openInTool(resource)">Open with {{ tool.title }}</a> |
62 | | - <a *ngIf="resource.resourceType !== 'State'" mat-raised-button color="primary" (click)="open(resource)">Open {{ resource.resourceType }}</a> |
63 | | - <a mat-raised-button color="primary" (click)="notificationService.info('Not yet implemented')">Discuss</a> |
64 | | - <!-- <a mat-raised-button color="primary" [routerLink]="'/discussion'">Discuss</a> --> |
65 | | - <a mat-raised-button color="primary" (click)="notificationService.info('Not yet implemented')">Create Insight</a> |
66 | | - </div> |
| 74 | + |
| 75 | + |
67 | 76 | </mat-card> |
68 | 77 |
|
69 | 78 | <ng-template #showResourceEditForm> |
|
0 commit comments