2019-04-24 11:26:53 +02:00
|
|
|
<div class="card">
|
2019-04-25 11:03:22 +02:00
|
|
|
<div class="card-header card-header-plain">
|
|
|
|
<div class="card-desc">
|
|
|
|
<h4 class="card-title">
|
|
|
|
{{ 'RECENT-ACTIVITY.LAST-EDITED-DMP' | translate}}
|
|
|
|
</h4>
|
|
|
|
<p class="card-category">
|
|
|
|
{{ 'RECENT-ACTIVITY.LICENSE' | translate}}
|
|
|
|
</p>
|
|
|
|
</div>
|
2019-05-06 09:01:26 +02:00
|
|
|
<div class="view-all" [class.clickable]="isAuthenticated()" (click)="navigateToUrl()">
|
|
|
|
{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</div>
|
2019-04-25 11:03:22 +02:00
|
|
|
</div>
|
|
|
|
<div class="card-body table-responsive">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead class="text-default">
|
|
|
|
<th>{{ 'DATASET-PROFILE-LISTING.COLUMNS.NAME' | translate}}</th>
|
|
|
|
<th>{{ 'DATASET-PROFILE-LISTING.COLUMNS.TEMPLATE' | translate }}</th>
|
2019-08-01 09:54:40 +02:00
|
|
|
<th>{{ 'DATASET-PROFILE-LISTING.COLUMNS.GRANT' | translate }}</th>
|
2019-04-25 11:03:22 +02:00
|
|
|
<th>{{ 'DATASET-PROFILE-LISTING.COLUMNS.ROLE' | translate }}</th>
|
|
|
|
<th>{{ 'DATASET-PROFILE-LISTING.COLUMNS.ORGANIZATION' | translate }}</th>
|
|
|
|
<th>{{ 'DATASET-PROFILE-LISTING.COLUMNS.STATUS' | translate }}</th>
|
2019-05-06 09:01:26 +02:00
|
|
|
<th>{{ 'DATASET-PROFILE-LISTING.COLUMNS.EDITED' | translate }}</th>
|
2019-04-25 11:03:22 +02:00
|
|
|
<th></th>
|
|
|
|
</thead>
|
|
|
|
<tbody *ngIf="dmpActivities != null">
|
2019-05-06 09:01:26 +02:00
|
|
|
<tr (click)="redirect(activity.id, recentActivityTypeEnum.Dmp)" *ngFor="let activity of dmpActivities"
|
|
|
|
style="cursor: pointer;">
|
2019-04-25 11:03:22 +02:00
|
|
|
<td>{{ activity.label }}</td>
|
|
|
|
<td>
|
2019-05-21 15:42:28 +02:00
|
|
|
<div matTooltip="{{ dmpProfileDisplay(activity.profile) }}" class="template-name">
|
2019-05-17 10:42:30 +02:00
|
|
|
{{ dmpProfileDisplay(activity.profile) }}
|
2019-04-25 11:03:22 +02:00
|
|
|
</div>
|
|
|
|
</td>
|
2019-08-01 09:54:40 +02:00
|
|
|
<td>{{ activity.grant }}</td>
|
2019-05-17 10:42:30 +02:00
|
|
|
<td>{{roleDisplay(activity.users)}}</td>
|
2019-04-25 11:03:22 +02:00
|
|
|
<td>{{ activity.organisations }}</td>
|
|
|
|
<td *ngIf="activity.status === 1">
|
|
|
|
<div class="is-public">
|
|
|
|
{{ enumUtils.toDmpStatusString(activity.status) }}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td *ngIf="activity.status === 0" style="padding-left: 12px">
|
|
|
|
{{ enumUtils.toDmpStatusString(activity.status) }}
|
|
|
|
</td>
|
2019-05-06 12:50:48 +02:00
|
|
|
<td style="padding-left: 12px">{{ activity.modifiedTime | date: "shortDate" }}</td>
|
2019-06-04 13:34:30 +02:00
|
|
|
<td>
|
|
|
|
<!-- <i class="material-icons more-icon">more_horiz</i> -->
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="actionsMenu" class="ml-auto more-icon"
|
|
|
|
(click)="$event.stopImmediatePropagation();">
|
|
|
|
<mat-icon class="more-horiz">more_horiz</mat-icon>
|
|
|
|
</button>
|
|
|
|
<mat-menu #actionsMenu="matMenu">
|
|
|
|
<button mat-menu-item (click)="editClicked(activity)" class="menu-item">
|
|
|
|
<mat-icon>edit</mat-icon>{{ 'DMP-LISTING.ACTIONS.EDIT' | translate }}
|
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="cloneClicked(activity)" class="menu-item">
|
|
|
|
<mat-icon>add</mat-icon>{{ 'DMP-LISTING.ACTIONS.CLONE' | translate }}
|
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="deleteClicked(activity)" class="menu-item">
|
|
|
|
<mat-icon>delete</mat-icon>{{ 'DMP-LISTING.ACTIONS.DELETE' | translate }}
|
|
|
|
</button>
|
|
|
|
<button mat-menu-item (click)="advancedClicked(activity)" class="menu-item">
|
|
|
|
<mat-icon>save_alt</mat-icon>{{ 'DMP-LISTING.ACTIONS.ADV-EXP' | translate }}
|
|
|
|
</button>
|
|
|
|
</mat-menu>
|
|
|
|
</td>
|
2019-04-25 11:03:22 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
<tbody *ngIf="dmpActivities == null">
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|