Adds anchors on "VIEW ALL" links, wizards on dashboard.
This commit is contained in:
parent
2d35a3d665
commit
3f5d3f86b5
|
@ -70,7 +70,7 @@
|
|||
<h4> {{'DASHBOARD.DATA-MANAGEMENT-PLANS' | translate}} </h4>
|
||||
<div class="info">
|
||||
<p class="subtitle">{{ dashboardStatisticsData?.totalDataManagementPlanCount }} {{'HOME.DMPS' | translate}}</p>
|
||||
<p class="view-all" (click)=viewAllPublicDmpsClicked()>{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</p>
|
||||
<a class="view-all" [routerLink]="['/explore-plans']">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<mat-divider></mat-divider>
|
||||
|
@ -84,7 +84,7 @@
|
|||
<h4> DATASETS </h4>
|
||||
<div class="info">
|
||||
<p class="subtitle">{{ dashboardStatisticsData?.totalDataSetCount }} {{'HOME.DATASETS' | translate}}</p>
|
||||
<p class="view-all" (click)=viewAllPublicDatasetsClicked()>{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</p>
|
||||
<a class="view-all" [routerLink]="['explore']">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate }}</a>
|
||||
</div>
|
||||
</div>
|
||||
<mat-divider class="col-12"></mat-divider>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.header-image {
|
||||
background: url('/assets/images/dashboard-bg.png') no-repeat;
|
||||
background: url("/assets/images/dashboard-bg.png") no-repeat;
|
||||
background-size: cover;
|
||||
margin-top: 70px;
|
||||
min-height: 20em;
|
||||
|
@ -86,7 +86,8 @@
|
|||
}
|
||||
|
||||
.card-raised {
|
||||
box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0px rgba(0, 0, 0, 0.12),
|
||||
0 8px 10px -5px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.full-width {
|
||||
|
@ -106,4 +107,9 @@
|
|||
.view-all {
|
||||
margin-left: auto;
|
||||
margin-bottom: 0px !important;
|
||||
color: #6aa4d9;
|
||||
}
|
||||
|
||||
.view-all:hover {
|
||||
color: rgb(46, 117, 182) !important;
|
||||
}
|
||||
|
|
|
@ -175,11 +175,11 @@ export class DashboardComponent extends BaseComponent implements OnInit, IBreadC
|
|||
this.router.navigate(['/datasets/publicEdit/' + dataset.id]);
|
||||
}
|
||||
|
||||
viewAllPublicDmpsClicked() {
|
||||
this.router.navigate(['/explore-plans']);
|
||||
}
|
||||
// viewAllPublicDmpsClicked() {
|
||||
// this.router.navigate(['/explore-plans']);
|
||||
// }
|
||||
|
||||
viewAllPublicDatasetsClicked() {
|
||||
this.router.navigate(['explore']);
|
||||
}
|
||||
// viewAllPublicDatasetsClicked() {
|
||||
// this.router.navigate(['explore']);
|
||||
// }
|
||||
}
|
||||
|
|
|
@ -57,3 +57,13 @@ td:hover .draft-desc:after {
|
|||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.view-all {
|
||||
margin-left: auto;
|
||||
margin-bottom: 0px !important;
|
||||
color: #6aa4d9;
|
||||
}
|
||||
|
||||
.view-all:hover {
|
||||
color: rgb(46, 117, 182) !important;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<h4 class="card-title">{{ 'TYPES.DATASET-STATUS.DRAFT' | translate }}</h4>
|
||||
<p class="card-category">{{ 'TYPES.DATASET-STATUS.DRAFT-DESC' | translate }}</p>
|
||||
</div>
|
||||
<div class="view-all" [class.clickable]="isAuthenticated()" (click)="navigateToUrl()">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</div>
|
||||
<a class="view-all" [class.clickable]="isAuthenticated()" [routerLink]="['/datasets']" [queryParams]="{status: 0}">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</a>
|
||||
</div>
|
||||
<div class="card-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
</div>
|
||||
<div class="card-footer">
|
||||
<div class="stats">
|
||||
<div *ngIf="routerLink" class="view-all" [class.clickable]="isAuthenticated()" (click)="navigateToUrl()">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</div>
|
||||
<div *ngIf="!routerLink" class="view-all-hidden" [class.clickable]="isAuthenticated()" (click)="navigateToUrl()">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</div>
|
||||
<a *ngIf="routerLink" class="view-all" [class.clickable]="isAuthenticated()" [routerLink]="[routerLink]">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</a>
|
||||
<a *ngIf="!routerLink" class="view-all-hidden" [class.clickable]="isAuthenticated()">{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -6,6 +6,11 @@ a {
|
|||
color: #212529;
|
||||
}
|
||||
|
||||
.table-row {
|
||||
cursor: pointer;
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.is-public {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
|
@ -51,3 +56,13 @@ a {
|
|||
.mat-icon-button :hover {
|
||||
color: rgb(120, 173, 220);
|
||||
}
|
||||
|
||||
.view-all {
|
||||
margin-left: auto;
|
||||
margin-bottom: 0px !important;
|
||||
color: #6aa4d9;
|
||||
}
|
||||
|
||||
.view-all:hover {
|
||||
color: rgb(46, 117, 182) !important;
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
{{ 'RECENT-ACTIVITY.LICENSE' | translate}}
|
||||
</p>
|
||||
</div>
|
||||
<div class="view-all" [class.clickable]="isAuthenticated()" (click)="navigateToUrl()">
|
||||
{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</div>
|
||||
<a class="view-all" [class.clickable]="isAuthenticated()" [routerLink]="['plans/']">
|
||||
{{ 'GENERAL.ACTIONS.VIEW-ALL' | translate}}</a>
|
||||
</div>
|
||||
<div class="card-body table-responsive">
|
||||
<table class="table table-hover">
|
||||
|
@ -24,38 +24,33 @@
|
|||
<th></th>
|
||||
</thead>
|
||||
<tbody *ngIf="dmpActivities != null">
|
||||
<a *ngFor="let activity of dmpActivities" style="cursor: pointer; display: table-row" [routerLink]="['../plans/overview/' + activity.id]">
|
||||
<a *ngFor="let activity of dmpActivities" class="table-row" [routerLink]="['../plans/overview/' + activity.id]">
|
||||
<!-- <tr (click)="redirect(activity.id, recentActivityTypeEnum.Dmp)" *ngFor="let activity of dmpActivities" style="cursor: pointer;"> -->
|
||||
<td><a [routerLink]="['../plans/overview/' + activity.id]">{{ activity.label }}</a></td>
|
||||
<td><a [routerLink]="['../plans/overview/' + activity.id]">
|
||||
<td>{{ activity.label }}</td>
|
||||
<td>
|
||||
<div *ngIf="activity.profile" matTooltip="{{ activity.profile }}" class="template-name">
|
||||
{{ activity.profile }}
|
||||
</div>
|
||||
<div *ngIf="!(activity.profile)" class="template-name">--</div>
|
||||
</a>
|
||||
</td>
|
||||
<td><a [routerLink]="['../plans/overview/' + activity.id]">{{ activity.grant }}</a></td>
|
||||
<td><a [routerLink]="['../plans/overview/' + activity.id]">{{ roleDisplay(activity.users)}}</a></td>
|
||||
<td><a [routerLink]="['../plans/overview/' + activity.id]">{{ activity.organisations }}</a></td>
|
||||
<td *ngIf="activity.status === 1 && activity.public === true"><a [routerLink]="['plans/overview/' + activity.id]">
|
||||
<td>{{ activity.grant }}</td>
|
||||
<td>{{ roleDisplay(activity.users)}}</td>
|
||||
<td>{{ activity.organisations }}</td>
|
||||
<td *ngIf="activity.status === 1 && activity.public === true">
|
||||
<div class="is-public">
|
||||
{{'TYPES.DMP-VISIBILITY.PUBLIC' | translate}}
|
||||
</div>
|
||||
</a>
|
||||
</td>
|
||||
<td *ngIf="activity.status === 1 && activity.public === false" class="text-center">
|
||||
<a [routerLink]="['../plans/overview/' + activity.id]">
|
||||
{{ enumUtils.toDmpStatusString(activity.status) }}</a>
|
||||
{{ enumUtils.toDmpStatusString(activity.status) }}
|
||||
</td>
|
||||
<td *ngIf="activity.status === 0" class="text-center">
|
||||
<a [routerLink]="['../plans/overview/' + activity.id]">
|
||||
{{ enumUtils.toDmpStatusString(activity.status) }}</a>
|
||||
{{ enumUtils.toDmpStatusString(activity.status) }}
|
||||
</td>
|
||||
<td><a [routerLink]="['../plans/overview/' + activity.id]">
|
||||
{{ activity.modifiedTime | date: "shortDate" }}</a>
|
||||
<td>
|
||||
{{ activity.modifiedTime | date: "shortDate" }}
|
||||
</td>
|
||||
<td><a [routerLink]="['../plans/overview/' + activity.id]">
|
||||
<!-- <i class="material-icons more-icon">more_horiz</i> -->
|
||||
<td>
|
||||
<button mat-icon-button [matMenuTriggerFor]="actionsMenu" class="ml-auto more-icon" (click)="$event.preventDefault(); $event.stopPropagation();">
|
||||
<mat-icon class="more-horiz">more_horiz</mat-icon>
|
||||
</button>
|
||||
|
@ -91,7 +86,6 @@
|
|||
<span>{{'GENERAL.FILE-TYPES.JSON' | translate}}</span>
|
||||
</button>
|
||||
</mat-menu>
|
||||
</a>
|
||||
</td>
|
||||
</a>
|
||||
</tbody>
|
||||
|
|
|
@ -115,9 +115,9 @@ export class RecentEditedActivityComponent extends BaseComponent implements OnIn
|
|||
}
|
||||
}
|
||||
|
||||
navigateToUrl() {
|
||||
this.router.navigate(["plans/"]);
|
||||
}
|
||||
// navigateToUrl() {
|
||||
// this.router.navigate(["plans/"]);
|
||||
// }
|
||||
|
||||
roleDisplay(value: any) {
|
||||
const principal: Principal = this.authentication.current();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="card clickable">
|
||||
<a [routerLink]="[routerLink]" class="card clickable">
|
||||
<div class="row card-header card-header-blue">
|
||||
<div class="col card-desc">
|
||||
<h4 class="card-title pb-1">{{ title }}</h4>
|
||||
|
@ -7,4 +7,4 @@
|
|||
<i class="col-auto material-icons play_circle">{{ icon }}</i>
|
||||
</div>
|
||||
<div class="card-body table-responsive"></div>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { WizardComponent } from './wizard.component';
|
||||
|
||||
describe('WizardComponent', () => {
|
||||
let component: WizardComponent;
|
||||
let fixture: ComponentFixture<WizardComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ WizardComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(WizardComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue