2020-06-30 18:40:01 +02:00
|
|
|
<div class="main-content dashboard-main-container h-100" [class.non-auth-main-container]="!this.isAuthenticated()">
|
2020-06-26 11:08:51 +02:00
|
|
|
<div *ngIf="this.isAuthenticated()" class="container-fluid">
|
|
|
|
<div *ngIf="dashboardStatisticsData?.totalDataManagementPlanCount === 0
|
|
|
|
&& dashboardStatisticsData?.totalDataSetCount === 0
|
|
|
|
&& dashboardStatisticsData?.totalGrantCount === 0
|
|
|
|
&& dashboardStatisticsData?.totalOrganisationCount === 0">
|
|
|
|
<div class="main-content">
|
2020-07-02 18:34:27 +02:00
|
|
|
<div class="col-auto">
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="card" [style.display]="isVisible ? 'block' : 'none'">
|
2020-06-30 18:40:01 +02:00
|
|
|
<!-- <a class="col-auto d-flex" (click)="closeCard()"><span class="ml-auto pt-3 material-icons clear-icon">clear</span></a> -->
|
2020-07-02 18:34:27 +02:00
|
|
|
<p class="card-title mb-0 pt-3">{{'DASHBOARD.DMP-QUESTION' | translate}}</p>
|
2020-07-02 10:25:06 +02:00
|
|
|
<p class="card-content mb-0">{{'DASHBOARD.INFO-DMP-TEXT' | translate}}</p>
|
2020-06-30 18:40:01 +02:00
|
|
|
<p class="card-content pt-3 mb-0">
|
2020-07-02 10:25:06 +02:00
|
|
|
{{'DASHBOARD.NEW-QUESTION' | translate}} <a><u>{{'DASHBOARD.OPEN-AIR-GUIDE' | translate}}</u></a> {{'DASHBOARD.LEARN-MORE' | translate}}
|
2020-06-30 18:40:01 +02:00
|
|
|
</p>
|
|
|
|
<div class="d-flex">
|
2020-07-09 12:45:19 +02:00
|
|
|
<button type="button" class="col-auto align-self-center normal-btn" (click)="openNewDmpDialog()">{{'DASHBOARD.START-YOUR-FIRST-DMP' | translate}}</button>
|
2020-07-02 18:34:27 +02:00
|
|
|
<img class="col-auto ml-auto" src="../../../assets/splash/assets/img/laptop.png" width="116" height="139">
|
2020-06-30 18:40:01 +02:00
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
</div>
|
2020-07-02 18:34:27 +02:00
|
|
|
<div class="col pt-4 mt-3 pl-4">
|
2020-07-02 10:25:06 +02:00
|
|
|
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="counter-zero">0</div>
|
2020-07-02 10:25:06 +02:00
|
|
|
<a href="#" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="counter-zero">0</div>
|
2020-07-02 10:25:06 +02:00
|
|
|
<a href="#" class="link">{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}}</a>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="counter-zero">0</div>
|
2020-07-02 10:25:06 +02:00
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="counter-zero">0</div>
|
2020-07-02 10:25:06 +02:00
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
2020-06-30 18:40:01 +02:00
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="dashboardStatisticsData?.totalDataManagementPlanCount !== 0
|
|
|
|
|| dashboardStatisticsData?.totalDataSetCount !== 0
|
|
|
|
|| dashboardStatisticsData?.totalGrantCount !== 0
|
|
|
|
|| dashboardStatisticsData?.totalOrganisationCount !== 0">
|
|
|
|
<div class="main-content">
|
|
|
|
<div class="col">
|
2020-07-02 18:34:27 +02:00
|
|
|
<div class="card mt-0" [style.display]="isVisible ? 'block' : 'none'">
|
2020-06-30 18:40:01 +02:00
|
|
|
<a class="col-auto d-flex" (click)="closeCard()"><span class="ml-auto pt-3 material-icons clear-icon">clear</span></a>
|
|
|
|
<p class="card-content mb-0 pt-0">
|
|
|
|
{{'DASHBOARD.DMP-ABOUT-BEG' | translate}}
|
|
|
|
<b>{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}}</b>
|
|
|
|
{{'DASHBOARD.DMP-ABOUT-END' | translate}}</p>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="d-flex pt-4 pb-4 mt-3 mb-3">
|
2020-07-03 09:40:22 +02:00
|
|
|
<button mat-raised-button type="button" class="col-auto align-self-center yellow-btn" [routerLink]="['/datasets/new']">{{'DASHBOARD.ACTIONS.ADD-DATASET-DESCRIPTION' | translate}}</button>
|
2020-06-26 11:08:51 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-03 09:40:22 +02:00
|
|
|
<div class="latest-activity-title">{{'DASHBOARD.LATEST-ACTIVITY' | translate}}</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
<mat-tab-group mat-align-tabs="start" class="remove-border-bottom">
|
2020-07-03 09:40:22 +02:00
|
|
|
<mat-tab label="{{'DASHBOARD.ALL' | translate}} ({{totalRecents}})">
|
2020-07-02 18:34:27 +02:00
|
|
|
<app-recent-edited-activity (totalCountRecentEdited)="onCountAllRecent($event)"></app-recent-edited-activity>
|
2020-07-03 09:40:22 +02:00
|
|
|
<div *ngIf="totalRecents === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
</mat-tab>
|
2020-07-03 09:40:22 +02:00
|
|
|
<mat-tab label="{{'DASHBOARD.DRAFTS' | translate}} ({{totalDraftDatasets}})">
|
2020-07-01 17:25:16 +02:00
|
|
|
<app-drafts (totalCountDraftDatasets)="onCountDraftDatasets($event)"></app-drafts>
|
2020-07-03 09:40:22 +02:00
|
|
|
<div *ngIf="totalDraftDatasets === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
</mat-tab>
|
2020-07-03 09:40:22 +02:00
|
|
|
<mat-tab label="{{'DASHBOARD.DMPS' | translate}} ({{totalDmps}})">
|
2020-07-01 17:25:16 +02:00
|
|
|
<app-recent-edited-dmp-activity (totalCountDmps)="onCountDmps($event)"></app-recent-edited-dmp-activity>
|
2020-07-03 09:40:22 +02:00
|
|
|
<div *ngIf="totalDmps === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
</mat-tab>
|
2020-07-03 09:40:22 +02:00
|
|
|
<mat-tab label="{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}} ({{totalDatasets}})">
|
2020-07-01 17:25:16 +02:00
|
|
|
<app-recent-edited-dataset-activity (totalCountDatasets)="onCountDatasets($event)"></app-recent-edited-dataset-activity>
|
2020-07-03 09:40:22 +02:00
|
|
|
<div *ngIf="totalDatasets === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
<div *ngIf="totalDatasets === 0" class="col-auto d-flex justify-content-center">
|
|
|
|
<button mat-raised-button class="add-dataset" [routerLink]="['/datasets/new']">
|
|
|
|
<mat-icon>add</mat-icon> {{'DASHBOARD.ACTIONS.ADD-DATASET' | translate}}
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
</mat-tab>
|
|
|
|
</mat-tab-group>
|
|
|
|
</div>
|
2020-07-02 18:34:27 +02:00
|
|
|
<div class="col-auto stats">
|
2020-06-30 18:40:01 +02:00
|
|
|
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataManagementPlanCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataManagementPlanCount == 0}">
|
|
|
|
{{dashboardStatisticsData?.totalDataManagementPlanCount}}</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataSetCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataSetCount == 0}">
|
|
|
|
{{dashboardStatisticsData?.totalDataSetCount}}</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}}</a>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalGrantCount != 0, 'counter-zero': dashboardStatisticsData?.totalGrantCount == 0}">
|
|
|
|
{{dashboardStatisticsData?.totalGrantCount}}</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
2020-06-26 11:08:51 +02:00
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalOrganisationCount != 0, 'counter-zero': dashboardStatisticsData?.totalOrganisationCount == 0}">
|
|
|
|
{{dashboardStatisticsData?.totalOrganisationCount}}</div>
|
2020-06-30 18:40:01 +02:00
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
2020-06-26 11:08:51 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="header-image">
|
2019-05-08 17:39:07 +02:00
|
|
|
<div class="header-text-container">
|
2019-05-23 08:43:44 +02:00
|
|
|
<h3>{{ 'ABOUT.WELCOME' | translate }}</h3>
|
|
|
|
<h4>{{ 'ABOUT.WELCOME-MESSAGE' | translate }}</h4>
|
2019-05-08 17:39:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-10 15:20:53 +02:00
|
|
|
<div class="main-content dashboard-main-container" [class.non-auth-main-container]="!this.isAuthenticated()">
|
2019-05-08 17:39:07 +02:00
|
|
|
<div *ngIf="this.isAuthenticated()" class="container-fluid">
|
2019-04-24 11:26:53 +02:00
|
|
|
<div class="row" *ngIf="this.isAuthenticated()">
|
|
|
|
<div class="col-sm-6 col-md-6 col-lg-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-wizard title="{{'QUICKWIZARD.CREATE-ADD.CREATE.TITLE' | translate}}" subtitle="{{'QUICKWIZARD.CREATE-ADD.CREATE.SUBTITLE' | translate}}" routerLink="/quick-wizard" icon="play_circle_outline">
|
2019-05-15 17:21:04 +02:00
|
|
|
</app-wizard>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-6 col-lg-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-wizard title="{{'QUICKWIZARD.CREATE-ADD.ADD.TITLE' | translate}}" subtitle="{{'QUICKWIZARD.CREATE-ADD.ADD.SUBTITLE' | translate}}" routerLink="/datasetcreatewizard" icon="play_circle_outline"></app-wizard>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-info-counter [title]="'DASHBOARD.MY-DMPS'" [subtitle]="dashboardStatisticsData?.totalDataManagementPlanCount" routerLink='/plans' buttonRedirectLink="/plans/new" icon="view_agenda"></app-info-counter>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-info-counter [title]="'DASHBOARD.MY-DATASETS'" [subtitle]="dashboardStatisticsData?.totalDataSetCount" routerLink='/datasets' buttonRedirectLink="/datasets/new" icon="library_books"></app-info-counter>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-10-04 09:53:35 +02:00
|
|
|
<app-info-counter [title]="'DASHBOARD.MY-GRANTS'" [subtitle]="dashboardStatisticsData?.totalGrantCount" icon="work_outline"></app-info-counter>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-info-counter [title]="'DASHBOARD.ORGANIZATIONS'" [subtitle]="dashboardStatisticsData?.totalOrganisationCount" icon="scatter_plot">
|
2019-05-15 17:21:04 +02:00
|
|
|
</app-info-counter>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-06 09:01:26 +02:00
|
|
|
<div class="row">
|
2019-04-24 11:26:53 +02:00
|
|
|
<div class="col-lg-12 col-md-12">
|
|
|
|
<app-recent-edited-activity></app-recent-edited-activity>
|
|
|
|
</div>
|
2019-05-06 09:01:26 +02:00
|
|
|
</div>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
|
|
<app-drafts></app-drafts>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-08 17:39:07 +02:00
|
|
|
<div *ngIf="!this.isAuthenticated()" class="container-fluid">
|
2019-05-10 15:20:53 +02:00
|
|
|
<div class="row non-auth-stats">
|
2019-05-08 17:39:07 +02:00
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-info-counter [title]="'DASHBOARD.DMPS'" [subtitle]="dashboardStatisticsData?.totalDataManagementPlanCount" routerLink='/explore-plans' buttonRedirectLink="/plans/new" icon="view_agenda"></app-info-counter>
|
2018-11-27 18:33:17 +01:00
|
|
|
</div>
|
2019-05-08 17:39:07 +02:00
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-info-counter [title]="'DASHBOARD.DATASETS'" [subtitle]="dashboardStatisticsData?.totalDataSetCount" routerLink='/explore' buttonRedirectLink="/datasets/new" icon="library_books"></app-info-counter>
|
2019-05-08 17:39:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-10-04 09:53:35 +02:00
|
|
|
<app-info-counter [title]="'DASHBOARD.GRANTS'" [subtitle]="dashboardStatisticsData?.totalGrantCount" icon="work_outline"></app-info-counter>
|
2019-05-08 17:39:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
2019-09-20 12:54:37 +02:00
|
|
|
<app-info-counter title="Related Organizations" [subtitle]="dashboardStatisticsData?.totalOrganisationCount" icon="scatter_plot"></app-info-counter>
|
2019-03-06 11:03:02 +01:00
|
|
|
</div>
|
2018-11-27 18:33:17 +01:00
|
|
|
</div>
|
2019-05-10 15:20:53 +02:00
|
|
|
<div class="d-flex flex-column align-items-center non-auth-title-container">
|
2019-07-01 12:29:06 +02:00
|
|
|
<h4>{{'DASHBOARD.TITLE' | translate}}</h4>
|
|
|
|
<p>{{'DASHBOARD.INFO-TEXT' | translate}}</p>
|
2019-05-10 15:20:53 +02:00
|
|
|
</div>
|
2019-05-15 17:21:04 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 mt-4">
|
|
|
|
<div class="title">
|
2019-05-23 08:43:44 +02:00
|
|
|
<h4> {{'DASHBOARD.DATA-MANAGEMENT-PLANS' | translate}} </h4>
|
2019-05-15 17:21:04 +02:00
|
|
|
<div class="info">
|
2019-06-07 17:17:57 +02:00
|
|
|
<p class="subtitle">{{ dashboardStatisticsData?.totalDataManagementPlanCount }} {{'HOME.DMPS' | translate}}</p>
|
2019-10-25 13:54:12 +02:00
|
|
|
<a class="view-all" [routerLink]="['/explore-plans']">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</a>
|
2019-05-15 17:21:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<mat-divider></mat-divider>
|
|
|
|
<div *ngFor="let dmp of dmpListingItems">
|
|
|
|
<app-dmp-info-counter [dmp]="dmp" (onClick)="dmpClicked($event)"></app-dmp-info-counter>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6 mt-4">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 title">
|
|
|
|
<h4> DATASETS </h4>
|
|
|
|
<div class="info">
|
2019-06-07 17:17:57 +02:00
|
|
|
<p class="subtitle">{{ dashboardStatisticsData?.totalDataSetCount }} {{'HOME.DATASETS' | translate}}</p>
|
2020-03-13 17:35:51 +01:00
|
|
|
<a class="view-all" [routerLink]="['/explore']">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</a>
|
2019-05-15 17:21:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<mat-divider class="col-12"></mat-divider>
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="row">
|
|
|
|
<div *ngFor="let dataset of datasetListingItems" class="col-md-6">
|
|
|
|
<app-dataset-info-counter [dataset]="dataset" (onClick)="datasetClicked($event)">
|
|
|
|
</app-dataset-info-counter>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-27 18:33:17 +01:00
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
</div> -->
|