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">
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="this.dashboardStatistics">
|
|
|
|
<div class="main-content">
|
|
|
|
<div class="col">
|
|
|
|
<div class="card col-auto mt-0" [style.display]="isVisible ? 'block' : 'none'">
|
|
|
|
<a *ngIf="this.hasDmps()" class="col-auto d-flex" (click)="closeCard()"><span class="ml-auto mt-3 material-icons clear-icon">clear</span></a>
|
2020-11-24 18:09:10 +01:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
<p *ngIf="!this.hasDmps()" class="card-title mb-0 pt-4">{{'DASHBOARD.DMP-QUESTION' | translate}}</p>
|
|
|
|
<p *ngIf="!this.hasDmps()" class="card-content mb-0">{{'DASHBOARD.INFO-DMP-TEXT' | translate}}</p>
|
2020-11-24 18:09:10 +01:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
<p *ngIf="!this.hasDmps()" class="card-content pt-3 mb-0">
|
|
|
|
{{'DASHBOARD.NEW-QUESTION' | translate}} <a href="https://www.openaire.eu/how-to-create-a-data-management-plan" target="_blank"><u>{{'DASHBOARD.OPEN-AIR-GUIDE' | translate}}</u></a> {{'DASHBOARD.LEARN-MORE' | translate}}
|
|
|
|
</p>
|
|
|
|
<p *ngIf="this.hasDmps()" class="card-content mb-0 pt-0">{{'DASHBOARD.DMP-ABOUT-BEG' | translate}}
|
|
|
|
<b>{{'DASHBOARD.DATASET-DESCRIPTIONS-DASHBOARD-TEXT' | translate}}</b>
|
|
|
|
{{'DASHBOARD.DMP-ABOUT-END' | translate}}
|
|
|
|
</p>
|
2020-11-24 18:09:10 +01:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
<div class="row d-flex align-items-center">
|
|
|
|
<div *ngIf="!this.hasDmps()" class="col-auto add-dataset-btn d-flex">
|
|
|
|
<button type="button" class="col-auto align-self-center normal-btn" (click)="openNewDmpDialog()">{{'DASHBOARD.START-YOUR-FIRST-DMP' | translate}}</button>
|
2020-08-06 17:21:53 +02:00
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="this.hasDmps()" class="new-dataset-tour add-dataset-btn col-auto d-flex">
|
|
|
|
<button mat-raised-button type="button" class="col-auto align-self-center yellow-btn" (click)="addNewDataset()">{{'DASHBOARD.ACTIONS.ADD-DESCRIPTION' | translate}}</button>
|
|
|
|
</div>
|
|
|
|
<span class="col-auto ml-auto">
|
|
|
|
<img class="laptop-img\6" src="../../../assets/images/dashboard-popup.png">
|
|
|
|
</span>
|
2020-06-30 18:40:01 +02:00
|
|
|
</div>
|
2020-08-06 17:21:53 +02:00
|
|
|
</div>
|
2020-11-24 18:09:10 +01:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="this.hasDmps()" class="col">
|
|
|
|
<div class="latest-activity-title">{{'DASHBOARD.LATEST-ACTIVITY' | translate}}</div>
|
|
|
|
<mat-tab-group mat-align-tabs="start" class="remove-border-bottom" [selectedIndex]="indexFromCurrentType" (selectedTabChange)="currentType = $event.tab.ariaLabel">
|
|
|
|
<mat-tab aria-label="recent" label="{{'DASHBOARD.ALL' | translate}}">
|
|
|
|
<app-recent-edited-activity (totalCountRecentEdited)="onCountAllRecent($event)" [isActive]="currentType == 'recent'"></app-recent-edited-activity>
|
|
|
|
<div *ngIf="totalRecents === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
</mat-tab>
|
|
|
|
<mat-tab aria-label="drafts" label="{{'DASHBOARD.DRAFTS' | translate}}">
|
|
|
|
<app-drafts (totalCountDraftDatasets)="onCountDraftDatasets($event)" [isActive]="currentType == 'drafts'"></app-drafts>
|
|
|
|
<div *ngIf="totalDraftDatasets === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
</mat-tab>>
|
|
|
|
<mat-tab aria-label="dmps" label="{{'DASHBOARD.DMPS' | translate}}">
|
|
|
|
<app-recent-edited-dmp-activity (totalCountDmps)="onCountDmps($event)" [isActive]="currentType == 'dmps'"></app-recent-edited-dmp-activity>
|
|
|
|
<div *ngIf="totalDmps === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
</mat-tab>
|
2024-03-12 17:47:57 +01:00
|
|
|
<mat-tab aria-label="descriptions" label="{{'DASHBOARD.DESCRIPTIONS' | translate}}">
|
|
|
|
<app-recent-edited-description-activity (totalCountDatasets)="onCountDatasets($event)" [isActive]="currentType == 'descriptions'"></app-recent-edited-description-activity>
|
2023-12-05 21:36:00 +01: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" (click)="addNewDataset()">
|
|
|
|
<mat-icon>add</mat-icon> {{'DASHBOARD.ACTIONS.ADD-DESCRIPTION' | translate}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</mat-tab>
|
|
|
|
</mat-tab-group>
|
2020-06-26 11:08:51 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-24 18:09:10 +01:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
<!-- Right Sidebar -->
|
|
|
|
<div *ngIf="!this.hasDmps()" class="col-auto ml-auto stats">
|
|
|
|
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.DESCRIPTIONS' | translate}}</a>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
2020-11-24 18:09:10 +01:00
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="this.hasDmps()" class="col-auto stats">
|
|
|
|
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.dmpCount != 0, 'counter-zero': dashboardStatistics?.dmpCount == 0}">
|
|
|
|
{{dashboardStatistics?.dmpCount}}</div>
|
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.descriptionCount != 0, 'counter-zero': dashboardStatistics?.descriptionCount == 0}">
|
|
|
|
{{dashboardStatistics?.descriptionCount}}</div>
|
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.DESCRIPTIONS' | translate}}</a>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.grantCount != 0, 'counter-zero': dashboardStatistics?.grantCount == 0}">
|
|
|
|
{{dashboardStatistics?.grantCount}}</div>
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.organizationCount != 0, 'counter-zero': dashboardStatistics?.organizationCount == 0}">
|
|
|
|
{{dashboardStatistics?.organizationCount}}</div>
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
2020-08-03 10:40:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
|
2023-12-05 21:36:00 +01:00
|
|
|
<div>
|
|
|
|
<div class="main-content">
|
2020-06-26 11:08:51 +02:00
|
|
|
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
|
|
|
|
<!-- Home screen on log out -->
|
|
|
|
<div class="col p-0" *ngIf="!this.isAuthenticated()">
|
|
|
|
<div class="col-auto">
|
|
|
|
<div class="main-content">
|
|
|
|
<div class="col">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col d-flex flex-column">
|
|
|
|
<div class="card non-auth-card" [style.display]="isVisible ? 'block' : 'none'">
|
|
|
|
<a class="col-auto d-flex" (click)="closeCard()"><span class="ml-auto mt-3 material-icons clear-icon">clear</span></a>
|
|
|
|
<div class="d-flex flex-column align-items-center non-auth-title-container">
|
|
|
|
<h4 class="pt-4">{{'DASHBOARD.TITLE' | translate}}</h4>
|
|
|
|
<p class="col-auto app-info">{{'DASHBOARD.INFO-TEXT' | translate}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="d-flex">
|
|
|
|
<img class="col-auto ml-auto laptop-img" src="../../../assets/images/dashboard-popup.png">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- <div *ngIf="hasDmps()" class="col activity">
|
|
|
|
<div class="latest-activity-title">{{'DASHBOARD.LATEST-ACTIVITY' | translate}}</div>
|
|
|
|
<mat-tab-group mat-align-tabs="start" class="remove-border-bottom" ( [selectedIndex]="indexFromCurrentType" selectedTabChange)="currentType = $event.tab.ariaLabel">
|
|
|
|
<mat-tab aria-label="recent" label="{{'DASHBOARD.ALL' | translate}}">
|
|
|
|
<app-recent-edited-activity (totalCountRecentEdited)="onCountAllRecent($event)" [isActive]="currentType == 'recent'"></app-recent-edited-activity>
|
|
|
|
<div *ngIf="totalRecents === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
</mat-tab>
|
|
|
|
<mat-tab aria-label="dmps" label="{{'DASHBOARD.PUBLIC-DMPS' | translate}}">
|
|
|
|
<app-recent-edited-dmp-activity (totalCountDmps)="onCountDmps($event)" [isActive]="currentType == 'dmps'"></app-recent-edited-dmp-activity>
|
|
|
|
<div *ngIf="totalDmps === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
</mat-tab>
|
|
|
|
<mat-tab aria-label="datasets" label="{{'DASHBOARD.PUBLIC-DATASETS' | translate}}">
|
2024-03-12 17:47:57 +01:00
|
|
|
<app-recent-edited-description-activity (totalCountDatasets)="onCountDatasets($event)" [isActive]="currentType == 'datasets'"></app-recent-edited-description-activity>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div *ngIf="totalDatasets === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
</mat-tab>
|
|
|
|
</mat-tab-group>
|
|
|
|
</div> -->
|
2019-05-15 17:21:04 +02:00
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
<div class="col-auto">
|
|
|
|
<div *ngIf="!hasDmps()" class="ml-auto pl-4 personal-usage-block">
|
|
|
|
<div class="personal-usage">{{'DASHBOARD.PUBLIC-USAGE' | translate}}</div>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a>{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a>{{'DASHBOARD.PUBLIC-DATASETS' | translate}}</a>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
<div class="counter-zero">0</div>
|
|
|
|
<a class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="hasDmps()" class="ml-auto stats">
|
|
|
|
<div class="personal-usage">{{'DASHBOARD.PUBLIC-USAGE' | translate}}</div>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.dmpCount != 0, 'counter-zero': dashboardStatistics?.dmpCount == 0}">
|
|
|
|
{{dashboardStatistics?.dmpCount}}</div>
|
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.descriptionCount != 0, 'counter-zero': dashboardStatistics?.descriptionCount == 0}">
|
|
|
|
{{dashboardStatistics?.descriptionCount}}</div>
|
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.PUBLIC-DATASETS' | translate}}</a>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.grantCount != 0, 'counter-zero': dashboardStatistics?.grantCount == 0}">
|
|
|
|
{{dashboardStatistics?.grantCount}}</div>
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
<div [ngClass]="{'counter': dashboardStatistics?.organizationCount != 0, 'counter-zero': dashboardStatistics?.organizationCount == 0}">
|
|
|
|
{{dashboardStatistics?.organizationCount}}</div>
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
2019-05-15 17:21:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-11-27 18:33:17 +01:00
|
|
|
</div>
|
2023-12-05 21:36:00 +01:00
|
|
|
</div>
|