[Trunk|Admin]: 1. Add personal info on user items. 2. Change Dashboard display.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56243 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-06-27 15:17:23 +00:00
parent 3d2fdda714
commit 2784aef943
2 changed files with 100 additions and 81 deletions

View File

@ -118,6 +118,7 @@ export class AppComponent implements OnInit{
}
if (this.communityId) {
this.userMenuItems.push(new MenuItem('manage-user-notifications', 'Manage notification settings', '', '/manage-user-notifications', false, [], [], {communityId: this.communityId}));
this.userMenuItems.push(new MenuItem('personal', 'Manage Personal Info', '', '/personal', false, [], [], {communityId: this.communityId}));
}
this.buildSideBar();
},
@ -305,21 +306,21 @@ export class AppComponent implements OnInit{
items: [],
ukIcon: 'user'
};
users.items.push( {
rootItem: new MenuItem('personalInfo', 'Personal Info', '/personal',
'/personal', false, [], [], {communityId: this.communityId}),
items: []
})
users.items.push({
rootItem: new MenuItem('subscribers', 'Subscribers', '/manage-subscribers',
'/manage-subscribers', false, [], [], {communityId: this.communityId}),
items: []
});
users.items.push({
rootItem: new MenuItem('invite', 'Invite to Subscribe', 'https://beta.' + this.communityId + '.openaire.eu/invite',
'', false, [], [], null),
items: []
});
users.items.push({
rootItem: new MenuItem('subscribers', 'Subscribers', '/manage-subscribers',
'/manage-subscribers', false, [], [], {communityId: this.communityId}),
items: []
});
users.items.push( {
rootItem: new MenuItem('personalInfo', 'Personal Info', '/personal',
'/personal', false, [], [], {communityId: this.communityId}),
items: []
})
users.items.push({
rootItem: new MenuItem('notifications', 'Notification settings', '/manage-user-notifications',
'/manage-user-notifications', false, [], [], {communityId: this.communityId}),

View File

@ -2,92 +2,110 @@
<div id="content">
<div class="content-wrapper">
<div class="uk-child-width-1-3@m uk-grid-small uk-grid-match uk-grid uk-margin-top" uk-grid="">
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m uk-first-column">
<h3 class="uk-card-title">
<div class="uk-child-width-1-3@m uk-grid-small uk-grid-match uk-margin-top" uk-grid="" uk-height-match=".target">
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="album"></span>
Profile
</h3>
<p>Edit community information, change logo url, add community managers or subjects related to community.
</p><p><a routerLink="/community-edit-form" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Edit Community Profile</a></p>
</div>
<div class="target">
Edit community information, change logo url, add community managers or organizations related to community.
</div>
<div class="target">
<a routerLink="/community-edit-form" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Edit Community Profile</a><br>
<a routerLink="/organizations" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Edit Community Organizations</a>
</div>
</div>
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m">
<h3 class="uk-card-title">
<span class="uk-margin-small-right uk-icon" uk-icon="list"></span>
Content
</h3>
Manage projects, content providers{{(communityType && communityType != 'ri')?', subjects':''}} and zenodo communities that are related to the research community.
<p>
<a routerLink="/manage-projects" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Projects</a> <br>
<a routerLink="/manage-content-providers" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Content providers</a> <br>
<a routerLink="/manage-zenodo-communities" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Zenodo communities</a> <br>
<a *ngIf="communityType && communityType != 'ri'" routerLink="/manage-subjects" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Subjects</a> <br>
<!--a href="http://scoobydoo.di.uoa.gr/connect/dashboard.html#" class="uk-button uk-button-text">Manage organizations</a-->
</p>
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="list"></span>
Content
</div>
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m uk-first-column">
<h3 class="uk-card-title">
<div class="target">
Manage projects, content providers{{(communityType && communityType != 'ri')?', subjects':''}} and zenodo communities that are related to the research community.
</div>
<div class="target">
<a routerLink="/manage-projects" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Projects</a> <br>
<a routerLink="/manage-content-providers" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Content providers</a> <br>
<a routerLink="/manage-zenodo-communities" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Zenodo communities</a> <br>
<a *ngIf="communityType && communityType != 'ri'" routerLink="/manage-subjects" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Subjects</a> <br>
</div>
</div>
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="image"></span>
Statistics &amp; Charts
</h3>
<p> Manage statistical numbers & charts that will be displayed in the dashboard and monitor pages.
<a routerLink="/stats" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Statistics &amp; charts</a>
</p>
</div>
<div class="target">
Manage statistical numbers & charts that will be displayed in the community overview and graph analysis views.
</div>
<div class="target">
<a routerLink="/stats" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Statistics &amp; charts</a>
</div>
</div>
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m">
<h3 class="uk-card-title">
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="link"></span>
Links
</h3>
Manage user claims related to the research community.
<p>
<a routerLink="/claims" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Links</a>
</p>
</div>
<div class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m">
<h3 class="uk-card-title">
<span class="uk-margin-small-right uk-icon" uk-icon="file-edit"></span>
Help texts
</h3>
Add or edit help text in research community pages.
<p>
<a routerLink="/pageContents" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Help texts in pages</a><br>
<a routerLink="/classContents" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Help texts in classes</a>
</p>
</div>
<div *ngIf="communityType && communityType == 'ri' && communityId!='openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m">
<h3 class="uk-card-title">
<div class="target">
Manage user claims related to the research community.
</div>
<div class="target">
<a routerLink="/claims" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Links</a>
</div>
</div>
<div class="uk-card uk-card-default uk-card-body uk-card-hover">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="file-edit"></span>
Help texts
</div>
<div class="target">
Add or edit help text in research community pages.
</div>
<div class="target">
<a routerLink="/pageContents" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Help texts in pages</a><br>
<a routerLink="/classContents" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Help texts in classes</a>
</div>
</div>
<div *ngIf="communityType && communityType == 'ri' && communityId!='openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="settings"></span>
Text mining rules
</h3>
</div>
<div class="target">
Manage text mining rules, test the rules and see the results, save and load mining profiles.
<p>
<a routerLink="/mining/manage-profiles" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Text mining rules</a>
</p>
</div>
<div *ngIf="communityId!='openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m">
<h3 class="uk-card-title">
<span class="uk-margin-small-right uk-icon" uk-icon="user"></span>
Users
</h3>
Manage subscibers, invite more users to subscibe, manage your notification settings.
<p>
<a routerLink="/manage-subscribers" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Subscribers</span>
</a>
<br>
<a [href]="'https://beta.'+this.communityId+'.openaire.eu/invite'" target="_blank" class="uk-button uk-button-text">
<span>Invite to subscribe </span>
</a>
<br>
<a routerLink="/manage-user-notifications" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Notification settings </span>
</a>
</p>
<div class="target">
<a routerLink="/mining/manage-profiles" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Text mining rules</a>
</div>
</div>
<div *ngIf="communityId!='openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="user"></span>
Users
</div>
<div class="target">
Invite more users to subscribe, manage community subscribers, your personal info and notification settings.
</div>
<div class="target">
<a [href]="'https://beta.'+this.communityId+'.openaire.eu/invite'" target="_blank" class="uk-button uk-button-text">
<span>Invite to subscribe </span>
</a>
<br>
<a routerLink="/manage-subscribers" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Subscribers</span>
</a>
<br>
<a routerLink="/personal" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Personal Info </span>
</a>
<br>
<a routerLink="/manage-user-notifications" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Notification settings </span>
</a>
</div>
</div>
</div>
</div>
</div>