[Connect | Trunk]: Add breadcrumbs on content, national bulletins and projects pages
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@58605 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
8c89496307
commit
3dffd1a9d5
|
@ -1,15 +1,17 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {Breadcrumb} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
|
||||
@Component({
|
||||
selector: 'content',
|
||||
template: `
|
||||
<html-page description="Sources and methology" pageTitle="Sources and methology"></html-page>
|
||||
<div class="communityBackground">
|
||||
<div class="uk-section uk-background-norepeat uk-section-overlap uk-padding-remove-vertical">
|
||||
<breadcrumbs addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
<html-page description="Sources and methology" pageTitle="Sources and methology"></html-page>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export class ContentPageComponent {
|
||||
constructor() {}
|
||||
public ngOnInit() {
|
||||
|
||||
}
|
||||
|
||||
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'about - Sources and Methology'}];
|
||||
}
|
||||
|
|
|
@ -9,12 +9,13 @@ import {ContentPageRoutingModule} from './content-routing.module';
|
|||
import {CommonModule} from "@angular/common";
|
||||
import {HtmlPagesModule} from "../htmlPages/htmlPages.module";
|
||||
import {IsRouteEnabled} from "../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {BreadcrumbsModule} from "../openaireLibrary/utils/breadcrumbs/breadcrumbs.module";
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
ContentPageRoutingModule, RouterModule, CommonModule,
|
||||
HtmlPagesModule
|
||||
HtmlPagesModule, BreadcrumbsModule
|
||||
],
|
||||
declarations: [
|
||||
ContentPageComponent
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
import {NaionalBulletinPageComponent} from './nationalBulletinsPage.component';
|
||||
import {NationalBulletinPageComponent} from './nationalBulletinsPage.component';
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {IsRouteEnabled} from "../../openaireLibrary/error/isRouteEnabled.guard";
|
||||
|
@ -8,7 +8,7 @@ import {IsRouteEnabled} from "../../openaireLibrary/error/isRouteEnabled.guard";
|
|||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([
|
||||
{ path: '', component: NaionalBulletinPageComponent, canActivate: [FreeGuard, IsRouteEnabled], canDeactivate: [PreviousRouteRecorder] }
|
||||
{ path: '', component: NationalBulletinPageComponent, canActivate: [FreeGuard, IsRouteEnabled], canDeactivate: [PreviousRouteRecorder] }
|
||||
|
||||
])
|
||||
]
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {Breadcrumb} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
|
||||
@Component({
|
||||
selector: 'natinal-bulletin',
|
||||
selector: 'national-bulletin',
|
||||
template: `
|
||||
<html-page description="Sources and methology" pageTitle="Sources and methology"></html-page>
|
||||
<div class="communityBackground">
|
||||
<div class="uk-section uk-background-norepeat uk-section-overlap uk-padding-remove-vertical">
|
||||
<breadcrumbs addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" [breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
<html-page description="National Bulletins" pageTitle="National Bulletins"></html-page>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export class NaionalBulletinPageComponent {
|
||||
constructor() {}
|
||||
public ngOnInit() {
|
||||
|
||||
}
|
||||
|
||||
export class NationalBulletinPageComponent {
|
||||
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'about - National Bulletins'}];
|
||||
}
|
||||
|
|
|
@ -3,23 +3,24 @@ import {RouterModule} from '@angular/router';
|
|||
|
||||
import {FreeGuard} from '../../openaireLibrary/login/freeGuard.guard';
|
||||
import {PreviousRouteRecorder} from '../../openaireLibrary/utils/piwik/previousRouteRecorder.guard';
|
||||
import {NaionalBulletinPageComponent} from './nationalBulletinsPage.component';
|
||||
import {NationalBulletinPageComponent} from './nationalBulletinsPage.component';
|
||||
import {CommonModule} from "@angular/common";
|
||||
import {HtmlPagesModule} from "../htmlPages.module";
|
||||
import {NaionalBulletinPageRoutingModule} from "./nationalBulletinsPage-routing.module";
|
||||
import {IsRouteEnabled} from "../../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {BreadcrumbsModule} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.module";
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
NaionalBulletinPageRoutingModule, RouterModule, CommonModule, HtmlPagesModule
|
||||
NaionalBulletinPageRoutingModule, RouterModule, CommonModule, HtmlPagesModule, BreadcrumbsModule
|
||||
],
|
||||
declarations: [
|
||||
NaionalBulletinPageComponent
|
||||
NationalBulletinPageComponent
|
||||
],
|
||||
providers: [FreeGuard, PreviousRouteRecorder, IsRouteEnabled],
|
||||
exports: [
|
||||
NaionalBulletinPageComponent
|
||||
NationalBulletinPageComponent
|
||||
]
|
||||
})
|
||||
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {Breadcrumb} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.component";
|
||||
|
||||
@Component({
|
||||
selector: 'projects',
|
||||
template: `
|
||||
<html-page description="Sources and methology" pageTitle="Sources and methology"></html-page>
|
||||
<div class="communityBackground">
|
||||
<div class="uk-section uk-background-norepeat uk-section-overlap uk-padding-remove-vertical">
|
||||
<breadcrumbs addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top"
|
||||
[breadcrumbs]="breadcrumbs"></breadcrumbs>
|
||||
</div>
|
||||
<html-page description="Projects and funding Opportunities" pageTitle="Projects and funding Opportunities"></html-page>
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export class ProjectsPageComponent {
|
||||
constructor() {}
|
||||
public ngOnInit() {
|
||||
|
||||
}
|
||||
|
||||
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'about - Projects and funding Opportunities'}];
|
||||
}
|
||||
|
|
|
@ -8,11 +8,12 @@ import {CommonModule} from "@angular/common";
|
|||
import {HtmlPagesModule} from "../htmlPages.module";
|
||||
import {ProjectsPageRoutingModule} from "./projects-routing.module";
|
||||
import {IsRouteEnabled} from "../../openaireLibrary/error/isRouteEnabled.guard";
|
||||
import {BreadcrumbsModule} from "../../openaireLibrary/utils/breadcrumbs/breadcrumbs.module";
|
||||
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
ProjectsPageRoutingModule, RouterModule, CommonModule, HtmlPagesModule
|
||||
ProjectsPageRoutingModule, RouterModule, CommonModule, HtmlPagesModule, BreadcrumbsModule
|
||||
],
|
||||
declarations: [
|
||||
ProjectsPageComponent
|
||||
|
|
Loading…
Reference in New Issue