Change header info in all pages.
Add connect menu items in admin pages.
This commit is contained in:
parent
ab2deefa15
commit
980ec60ac6
|
@ -41,8 +41,7 @@ export class AppComponent implements OnInit {
|
|||
logoUrl: null,
|
||||
logoSmallUrl: null,
|
||||
position: 'center',
|
||||
badge: false,
|
||||
stickyAnimation: false
|
||||
badge: false
|
||||
};
|
||||
userMenuItems: MenuItem[] = [];
|
||||
loading: boolean = true;
|
||||
|
@ -178,12 +177,11 @@ export class AppComponent implements OnInit {
|
|||
}
|
||||
|
||||
private buildMenu() {
|
||||
this.menuItems = [];
|
||||
this.userMenuItems = [];
|
||||
this.sideBarItems = [];
|
||||
if (this.user) {
|
||||
if (this.isCurator()) {
|
||||
this.userMenuItems.push(new MenuItem("", "Manage communities",
|
||||
this.userMenuItems.push(new MenuItem("", "Manage Gateways",
|
||||
"", "/", false, [], [], {}));
|
||||
}
|
||||
if (Session.isPortalAdministrator(this.user)) {
|
||||
|
@ -208,8 +206,7 @@ export class AppComponent implements OnInit {
|
|||
logoUrl: this.headerLogoUrl,
|
||||
logoSmallUrl: this.headerLogoUrl,
|
||||
position: 'left',
|
||||
badge: false,
|
||||
stickyAnimation: false
|
||||
badge: false
|
||||
};
|
||||
this.sideBarItems.push(new MenuItem("community", "Community Info", "", "/" + this.community.communityId, false, [], [], {}, {name: 'badge'}, null, null, "/" + this.community.communityId + "/info"));
|
||||
this.sideBarItems.push(new MenuItem("users", "Users", "", "/" + this.community.communityId + "/users", false, [], [], {}, {name: 'group'}, null, null, "/" + this.community.communityId + "/users"));
|
||||
|
@ -218,7 +215,7 @@ export class AppComponent implements OnInit {
|
|||
if (this.community.type === 'ri') {
|
||||
this.sideBarItems.push(new MenuItem("mining", "Mining", "", "/" + this.community.communityId + "/mining/manage-profiles", false, [], [], {}, {svg: mining.data}, null, null, "/" + this.community.communityId + "/mining"));
|
||||
}
|
||||
this.specialSideBarMenuItem = new MenuItem("back", "Manage communities", "", "/", false, [], null, {}, {name: 'search', class: 'uk-text-secondary'});
|
||||
this.specialSideBarMenuItem = new MenuItem("back", "Manage Gateways", "", "/", false, [], null, {}, {name: 'west'});
|
||||
|
||||
this.menuItems = [];
|
||||
this.menuItems.push({
|
||||
|
@ -278,16 +275,31 @@ export class AppComponent implements OnInit {
|
|||
this.headerUrl = 'https://' + ((properties.environment !== 'production')?'beta.':'') + 'connect.openaire.eu';
|
||||
this.menuHeader = {
|
||||
route: null,
|
||||
url: null,
|
||||
title: 'Research Community Dashboard',
|
||||
logoUrl: null,
|
||||
logoSmallUrl: null,
|
||||
position: 'center',
|
||||
badge: false,
|
||||
stickyAnimation: false
|
||||
url: this.headerUrl,
|
||||
title: "Monitor",
|
||||
logoUrl: 'assets/common-assets/logo-services/connect/small.svg',
|
||||
logoSmallUrl: "assets/common-assets/logo-services/connect/small.svg",
|
||||
position: 'left',
|
||||
badge: true,
|
||||
menuPosition: "center"
|
||||
};
|
||||
this.menuItems = [];
|
||||
this.menuItems.push({
|
||||
rootItem: new MenuItem("about", "About", this.headerUrl + "/about/learn-how", "", false, [], [], {}, null, null, null, null, "_self"),
|
||||
items: [
|
||||
new MenuItem("", "Learn the process", this.headerUrl + "/about/learn-how", "", false, [], [], {}, null, null, null, null, "_self"),
|
||||
new MenuItem("", "Publications", this.headerUrl + "/publications", "", false, [], [], {}, null, null, null, null, "_self"),
|
||||
new MenuItem("", "Roadmap", "https://trello.com/b/yfzUz0kp/openaire-connect-dashboard", "", false, [], [], {}),
|
||||
new MenuItem("", "FAQs", this.headerUrl + "/about/faq", "", false, [], [], {}, null, null, null, null, "_self")
|
||||
]
|
||||
|
||||
});
|
||||
this.menuItems.push({
|
||||
rootItem: new MenuItem("communities", "Communities", this.headerUrl + "/search/find/communities", "", false, [], [], {}, null, null, null, null, "_self"),
|
||||
items: []
|
||||
});
|
||||
if(this.isCurator()) {
|
||||
this.sideBarItems.push(new MenuItem("communities", "Manage Communities", "", "/", false, [], [], {}, {name: 'settings'}));
|
||||
this.sideBarItems.push(new MenuItem("communities", "Manage Gateways", "", "/", false, [], [], {}, {name: 'settings'}));
|
||||
}
|
||||
if (Session.isPortalAdministrator(this.user)) {
|
||||
this.sideBarItems.push(new MenuItem("super_admin", "Super Admin Options", "", "/admin-tools/portals", false, [], [], {}, {name: 'settings'}, null, null, '/admin-tools'));
|
||||
|
@ -296,7 +308,7 @@ export class AppComponent implements OnInit {
|
|||
}
|
||||
this.specialSideBarMenuItem = null;
|
||||
}
|
||||
this.hasSidebar = this.hasSidebar && this.sideBarItems.length > 0;
|
||||
this.hasSidebar = this.hasSidebar && this.sideBarItems.length > 1;
|
||||
}
|
||||
|
||||
private isCurator() {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Organizations
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Organizations
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<community-info tab="organizations"></community-info>
|
||||
|
|
|
@ -11,11 +11,11 @@ import {CommunityService} from "../../openaireLibrary/connect/community/communit
|
|||
template: `
|
||||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Links
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Links
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<users-tabs tab="claims"></users-tabs>
|
||||
|
|
|
@ -7,7 +7,7 @@ import {OpenaireEntities} from "../../openaireLibrary/utils/properties/searchFie
|
|||
@Component({
|
||||
selector: 'community-info',
|
||||
template: `
|
||||
<ul *ngIf="community" class="uk-tab uk-margin-top uk-flex uk-flex-center uk-flex-left@m" uk-tab>
|
||||
<ul *ngIf="community" class="uk-tab uk-margin-remove-bottom uk-margin-medium-top uk-flex uk-flex-center uk-flex-left@m" uk-tab>
|
||||
<li [class.uk-active]="tab === 'profile'"><a routerLink="../profile">Profile</a></li>
|
||||
<li [class.uk-active]="tab === 'organizations'"><a routerLink="../organizations">Organizations</a></li>
|
||||
<li [class.uk-active]="tab === 'projects'"><a routerLink="../projects">{{openAIREEntities.PROJECTS}}</a></li>
|
||||
|
|
|
@ -12,12 +12,12 @@ import {Subscription} from "rxjs";
|
|||
template: `
|
||||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Community
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Community
|
||||
Profile
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<community-info tab="profile"></community-info>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage <span class="uk-text-capitalize">{{openAIREEntities.DATASOURCES}}</span>
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage <span class="uk-text-capitalize">{{openAIREEntities.DATASOURCES}}</span>
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<community-info tab="content-providers"></community-info>
|
||||
|
|
|
@ -20,15 +20,15 @@ type Tab = 'all' | 'communities' | 'ris';
|
|||
template: `
|
||||
<div page-content [id]="tab">
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">
|
||||
Admin Dashboard - Manage Communities
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">Research Communities & Initiatives</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">Research Communities & Initiatives</h1>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="uk-tab uk-margin-top" uk-tab>
|
||||
<ul class="uk-tab uk-margin-medium-top" uk-tab>
|
||||
<li [class.uk-active]="tab === 'all'"><a (click)="tab = 'all'"><span class="title">All</span></a></li>
|
||||
<li [class.uk-active]="tab === 'communities'"><a (click)="tab = 'communities'"><span class="title">Research Communities</span></a>
|
||||
</li>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage {{openaireEntiites.PROJECTS}}
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage {{openaireEntiites.PROJECTS}}
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<community-info tab="projects"></community-info>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Subjects
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Subjects
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<community-info tab="subjects"></community-info>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Notification Settings</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Notification Settings</div>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<users-tabs tab="notifications"></users-tabs>
|
||||
|
|
|
@ -24,12 +24,12 @@ declare var UIkit;
|
|||
template: `
|
||||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Personal Info &
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Personal Info &
|
||||
Affiliations
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<users-tabs tab="personal"></users-tabs>
|
||||
|
|
|
@ -13,10 +13,10 @@ import {CommunityInfo} from "../../../openaireLibrary/connect/community/communit
|
|||
template: `
|
||||
<role-users [id]="community.communityId" [type]="community.type" [name]="community.shortTitle" [inviteDisableMessage]="inviteDisableMessage"
|
||||
[link]="link" [role]="'manager'" [message]="message" [emailComposer]="emailComposer">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Managers</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Users</div>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<users-tabs tab="manager"></users-tabs>
|
||||
|
|
|
@ -10,10 +10,10 @@ import {CommunityInfo} from "../../../openaireLibrary/connect/community/communit
|
|||
template: `
|
||||
<subscribers [id]="community.communityId" [type]="'community'" [name]="community.shortTitle"
|
||||
[inviteDisableMessage]="inviteDisableMessage">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Members</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Users</div>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<users-tabs tab="member"></users-tabs>
|
||||
|
|
|
@ -7,7 +7,7 @@ import {ActivatedRoute} from '@angular/router';
|
|||
@Component({
|
||||
selector: 'users-tabs',
|
||||
template: `
|
||||
<ul class="uk-tab uk-margin-top uk-flex uk-flex-center uk-flex-left@m" uk-tab>
|
||||
<ul class="uk-tab uk-margin-medium-top uk-margin-remove-bottom uk-flex uk-flex-center uk-flex-left@m" uk-tab>
|
||||
<li [class.uk-active]="tab === 'manager'"><a routerLink="../manager">Managers</a></li>
|
||||
<li [class.uk-active]="tab === 'member'"><a routerLink="../member">Members</a></li>
|
||||
<li *ngIf="canManageNotifications" [class.uk-active]="tab === 'notifications'"><a routerLink="../notifications">Notification
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div page-content>
|
||||
<div header>
|
||||
<div class="uk-flex uk-flex-middle uk-margin-top info">
|
||||
<div class="uk-flex uk-flex-middle uk-margin-medium-top info">
|
||||
<div>
|
||||
<div class="uk-margin-remove uk-text-background uk-text-bold uk-h6">Admin Dashboard - Manage Zenodo Communities
|
||||
<div class="uk-text-background uk-text-bold uk-text-small">Admin Dashboard - Manage Zenodo Communities
|
||||
</div>
|
||||
<h1 class="uk-h4 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
<h1 class="uk-h6 uk-margin-remove">{{community.shortTitle}}</h1>
|
||||
</div>
|
||||
</div>
|
||||
<community-info tab="zenodo-communities"></community-info>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d6befee58de8fcb89e27d0c3403fd937b2e1552c
|
||||
Subproject commit adf1b6d5f5e8fb1568615b0fc596a0f39beab3e6
|
|
@ -1 +1 @@
|
|||
Subproject commit 0e650a002b6f77957fcbe06b3609c8985c96dd2a
|
||||
Subproject commit eb5739ab8271aa71c8e58998ab88c61878f8788d
|
Loading…
Reference in New Issue