|
|
|
@ -1,186 +1,202 @@
|
|
|
|
|
<div class="main-content dashboard-main-container h-100" [class.non-auth-main-container]="!this.isAuthenticated()">
|
|
|
|
|
<div *ngIf="this.isAuthenticated()" class="container-fluid">
|
|
|
|
|
<div *ngIf="this.dashboardStatisticsData">
|
|
|
|
|
<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>
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<div *ngIf="newReleaseNotificationVisible" class="new-releases-card col-auto mt-0" [style.display]="isVisible ? 'block' : 'none'">
|
|
|
|
|
<a class="col-auto d-flex" (click)="dismissNewReleaseNotification()"><span class="ml-auto mt-3 material-icons clear-icon">clear</span></a>
|
|
|
|
|
<div class="row new-releases-hint-container m-0">
|
|
|
|
|
<p class="new-releases-chip mb-0 col-auto">{{'NEW-RELEASE-NOTIFICATION.HINT' | translate}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<p class="new-releases-title mb-0 pt-4">{{'NEW-RELEASE-NOTIFICATION.TITLE' | translate}}</p>
|
|
|
|
|
<p class="new-releases-content mb-0">{{'NEW-RELEASE-NOTIFICATION.BODY' | translate}}</p>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<div class="row d-flex align-items-center mt-4" *ngIf="this.configurationService.newReleaseNotificationLink">
|
|
|
|
|
<div class="col-auto d-flex">
|
|
|
|
|
<a class="notification-link" href="{{this.configurationService.newReleaseNotificationLink}}" target="_blank">
|
|
|
|
|
<button mat-raised-button type="button" class="col-auto align-self-center new-releases-btn">{{'NEW-RELEASE-NOTIFICATION.ACTIONS.LEARN-MORE' | translate}}</button>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <span class="col-auto ml-auto">
|
|
|
|
|
<img class="laptop-img\6" src="../../../assets/images/dashboard-popup.png">
|
|
|
|
|
</span> -->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<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}} ({{totalRecents}})">-->
|
|
|
|
|
<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="draft" label="{{'DASHBOARD.DRAFTS' | translate}} ({{totalDraftDatasets}})">-->
|
|
|
|
|
<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}} ({{totalDmps}})">-->
|
|
|
|
|
<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>
|
|
|
|
|
<!-- <mat-tab aria-label="datasets" label="{{'DASHBOARD.DESCRIPTIONS' | translate}} ({{totalDatasets}})">-->
|
|
|
|
|
<mat-tab aria-label="datasets" label="{{'DASHBOARD.DESCRIPTIONS' | translate}}">
|
|
|
|
|
<app-recent-edited-dataset-activity (totalCountDatasets)="onCountDatasets($event)" [isActive]="currentType == 'datasets'"></app-recent-edited-dataset-activity>
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 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>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div *ngIf="this.hasDmps()" class="col-auto stats">
|
|
|
|
|
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataManagementPlanCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataManagementPlanCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataManagementPlanCount}}</div>
|
|
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataSetCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataSetCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataSetCount}}</div>
|
|
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.DESCRIPTIONS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalGrantCount != 0, 'counter-zero': dashboardStatisticsData?.totalGrantCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalGrantCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalOrganisationCount != 0, 'counter-zero': dashboardStatisticsData?.totalOrganisationCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalOrganisationCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
|
|
|
|
<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}} ({{totalRecents}})">-->
|
|
|
|
|
<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="draft" label="{{'DASHBOARD.DRAFTS' | translate}} ({{totalDraftDatasets}})">-->
|
|
|
|
|
<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}} ({{totalDmps}})">-->
|
|
|
|
|
<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>
|
|
|
|
|
<!-- <mat-tab aria-label="datasets" label="{{'DASHBOARD.DESCRIPTIONS' | translate}} ({{totalDatasets}})">-->
|
|
|
|
|
<mat-tab aria-label="datasets" label="{{'DASHBOARD.DESCRIPTIONS' | translate}}">
|
|
|
|
|
<app-recent-edited-dataset-activity (totalCountDatasets)="onCountDatasets($event)" [isActive]="currentType == 'datasets'"></app-recent-edited-dataset-activity>
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
<!-- 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>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div *ngIf="this.hasDmps()" class="col-auto stats">
|
|
|
|
|
<div class="personal-usage">{{'DASHBOARD.PERSONAL-USAGE' | translate}}</div>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataManagementPlanCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataManagementPlanCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataManagementPlanCount}}</div>
|
|
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.DMPS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataSetCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataSetCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataSetCount}}</div>
|
|
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.DESCRIPTIONS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalGrantCount != 0, 'counter-zero': dashboardStatisticsData?.totalGrantCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalGrantCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalOrganisationCount != 0, 'counter-zero': dashboardStatisticsData?.totalOrganisationCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalOrganisationCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Home screen on log out -->
|
|
|
|
|
<div class="col p-0" *ngIf="!this.isAuthenticated()">
|
|
|
|
|
<div class="col-auto">
|
|
|
|
|
<!-- <div class="row">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="main-content">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- Home screen on log out -->
|
|
|
|
|
<div class="col p-0" *ngIf="!this.isAuthenticated()">
|
|
|
|
|
<div class="col-auto">
|
|
|
|
|
<!-- <div class="row">
|
|
|
|
|
<div class="col header-text-container">
|
|
|
|
|
<h3>{{ 'ABOUT.WELCOME' | translate }}</h3>
|
|
|
|
|
<h4>{{ 'ABOUT.WELCOME-MESSAGE' | translate }}</h4>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
<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">
|
|
|
|
|
<!-- <button type="button" class="col-auto align-self-center normal-btn" (click)="openNewDmpDialog()">{{'DASHBOARD.START-YOUR-FIRST-DMP' | translate}}</button> -->
|
|
|
|
|
<img class="col-auto ml-auto laptop-img" src="../../../assets/images/dashboard-popup.png">
|
|
|
|
|
<!-- <img class="col-auto ml-auto laptop-img"> -->
|
|
|
|
|
</div>
|
|
|
|
|
<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 *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}} ({{totalRecents}})">-->
|
|
|
|
|
<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}} ({{totalDmps}})">-->
|
|
|
|
|
<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}} ({{totalDatasets}})">-->
|
|
|
|
|
<mat-tab aria-label="datasets" label="{{'DASHBOARD.PUBLIC-DATASETS' | translate}}">
|
|
|
|
|
<app-recent-edited-dataset-activity (totalCountDatasets)="onCountDatasets($event)" [isActive]="currentType == 'datasets'"></app-recent-edited-dataset-activity>
|
|
|
|
|
<div *ngIf="totalDatasets === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
|
|
|
|
<!-- <div *ngIf="totalDatasets === 0" class="col-auto d-flex justify-content-center">
|
|
|
|
|
<div class="d-flex">
|
|
|
|
|
<!-- <button type="button" class="col-auto align-self-center normal-btn" (click)="openNewDmpDialog()">{{'DASHBOARD.START-YOUR-FIRST-DMP' | translate}}</button> -->
|
|
|
|
|
<img class="col-auto ml-auto laptop-img" src="../../../assets/images/dashboard-popup.png">
|
|
|
|
|
<!-- <img class="col-auto ml-auto laptop-img"> -->
|
|
|
|
|
</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}} ({{totalRecents}})">-->
|
|
|
|
|
<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}} ({{totalDmps}})">-->
|
|
|
|
|
<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}} ({{totalDatasets}})">-->
|
|
|
|
|
<mat-tab aria-label="datasets" label="{{'DASHBOARD.PUBLIC-DATASETS' | translate}}">
|
|
|
|
|
<app-recent-edited-dataset-activity (totalCountDatasets)="onCountDatasets($event)" [isActive]="currentType == 'datasets'"></app-recent-edited-dataset-activity>
|
|
|
|
|
<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-DESCRIPTION' | translate}}
|
|
|
|
|
</button>
|
|
|
|
|
</div> -->
|
|
|
|
|
</mat-tab>
|
|
|
|
|
</mat-tab-group>
|
|
|
|
|
</div>
|
|
|
|
|
</mat-tab>
|
|
|
|
|
</mat-tab-group>
|
|
|
|
|
</div>
|
|
|
|
|
<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': dashboardStatisticsData?.totalDataManagementPlanCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataManagementPlanCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataManagementPlanCount}}</div>
|
|
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataSetCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataSetCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataSetCount}}</div>
|
|
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.PUBLIC-DATASETS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalGrantCount != 0, 'counter-zero': dashboardStatisticsData?.totalGrantCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalGrantCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalOrganisationCount != 0, 'counter-zero': dashboardStatisticsData?.totalOrganisationCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalOrganisationCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<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': dashboardStatisticsData?.totalDataManagementPlanCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataManagementPlanCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataManagementPlanCount}}</div>
|
|
|
|
|
<a [routerLink]="['/plans']" class="link">{{'DASHBOARD.PUBLIC-DMPS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalDataSetCount != 0, 'counter-zero': dashboardStatisticsData?.totalDataSetCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalDataSetCount}}</div>
|
|
|
|
|
<a [routerLink]="['/datasets']" class="link">{{'DASHBOARD.PUBLIC-DATASETS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalGrantCount != 0, 'counter-zero': dashboardStatisticsData?.totalGrantCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalGrantCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.GRANTS' | translate}}</a>
|
|
|
|
|
<div [ngClass]="{'counter': dashboardStatisticsData?.totalOrganisationCount != 0, 'counter-zero': dashboardStatisticsData?.totalOrganisationCount == 0}">
|
|
|
|
|
{{dashboardStatisticsData?.totalOrganisationCount}}</div>
|
|
|
|
|
<a href="#" class="link-disabled">{{'DASHBOARD.RELATED-ORGANISATIONS' | translate}}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -188,10 +204,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div class="header-image">
|
|
|
|
|
<!-- <div class="header-image">
|
|
|
|
|
<div class="header-text-container">
|
|
|
|
|
<h3>{{ 'ABOUT.WELCOME' | translate }}</h3>
|
|
|
|
|
<h4>{{ 'ABOUT.WELCOME-MESSAGE' | translate }}</h4>
|
|
|
|
@ -291,4 +308,4 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
</div> -->
|