[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) { 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('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(); this.buildSideBar();
}, },
@ -306,20 +307,20 @@ export class AppComponent implements OnInit{
ukIcon: 'user' ukIcon: 'user'
}; };
users.items.push({ users.items.push({
rootItem: new MenuItem('personalInfo', 'Personal Info', '/personal', rootItem: new MenuItem('invite', 'Invite to Subscribe', 'https://beta.' + this.communityId + '.openaire.eu/invite',
'/personal', false, [], [], {communityId: this.communityId}), '', false, [], [], null),
items: [] items: []
}) });
users.items.push({ users.items.push({
rootItem: new MenuItem('subscribers', 'Subscribers', '/manage-subscribers', rootItem: new MenuItem('subscribers', 'Subscribers', '/manage-subscribers',
'/manage-subscribers', false, [], [], {communityId: this.communityId}), '/manage-subscribers', false, [], [], {communityId: this.communityId}),
items: [] items: []
}); });
users.items.push( { users.items.push( {
rootItem: new MenuItem('invite', 'Invite to Subscribe', 'https://beta.' + this.communityId + '.openaire.eu/invite', rootItem: new MenuItem('personalInfo', 'Personal Info', '/personal',
'', false, [], [], null), '/personal', false, [], [], {communityId: this.communityId}),
items: [] items: []
}); })
users.items.push({ users.items.push({
rootItem: new MenuItem('notifications', 'Notification settings', '/manage-user-notifications', rootItem: new MenuItem('notifications', 'Notification settings', '/manage-user-notifications',
'/manage-user-notifications', false, [], [], {communityId: this.communityId}), '/manage-user-notifications', false, [], [], {communityId: this.communityId}),

View File

@ -2,91 +2,109 @@
<div id="content"> <div id="content">
<div class="content-wrapper"> <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 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 uk-width-1-3@m uk-first-column"> <div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover">
<h3 class="uk-card-title"> <div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="album"></span> <span class="uk-margin-small-right uk-icon" uk-icon="album"></span>
Profile 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>
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m"> <div class="target">
<h3 class="uk-card-title"> 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">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="list"></span> <span class="uk-margin-small-right uk-icon" uk-icon="list"></span>
Content Content
</h3> </div>
<div class="target">
Manage projects, content providers{{(communityType && communityType != 'ri')?', subjects':''}} and zenodo communities that are related to the research community. Manage projects, content providers{{(communityType && communityType != 'ri')?', subjects':''}} and zenodo communities that are related to the research community.
<p> </div>
<div class="target">
<a routerLink="/manage-projects" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Projects</a> <br> <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-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 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 *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> </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"> </div>
<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="image"></span> <span class="uk-margin-small-right uk-icon" uk-icon="image"></span>
Statistics &amp; Charts 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>
<div class="target">
Manage statistical numbers & charts that will be displayed in the community overview and graph analysis views.
<div *ngIf="communityId != 'openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m"> </div>
<h3 class="uk-card-title"> <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">
<div class="uk-card-title target uk-h3">
<span class="uk-margin-small-right uk-icon" uk-icon="link"></span> <span class="uk-margin-small-right uk-icon" uk-icon="link"></span>
Links 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>
<div class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m"> <div class="target">
<h3 class="uk-card-title"> 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> <span class="uk-margin-small-right uk-icon" uk-icon="file-edit"></span>
Help texts Help texts
</h3> </div>
<div class="target">
Add or edit help text in research community pages. Add or edit help text in research community pages.
<p> </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="/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> <a routerLink="/classContents" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">Help texts in classes</a>
</p>
</div> </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"> </div>
<h3 class="uk-card-title"> <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> <span class="uk-margin-small-right uk-icon" uk-icon="settings"></span>
Text mining rules Text mining rules
</h3>
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>
<div *ngIf="communityId!='openaire' && this.communityId !== 'connect'" class="uk-card uk-card-default uk-card-body uk-card-hover uk-width-1-3@m"> <div class="target">
<h3 class="uk-card-title"> Manage text mining rules, test the rules and see the results, save and load mining profiles.
</div>
<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> <span class="uk-margin-small-right uk-icon" uk-icon="user"></span>
Users Users
</h3> </div>
Manage subscibers, invite more users to subscibe, manage your notification settings. <div class="target">
<p> 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"> <a routerLink="/manage-subscribers" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Subscribers</span> <span>Subscribers</span>
</a> </a>
<br> <br>
<a [href]="'https://beta.'+this.communityId+'.openaire.eu/invite'" target="_blank" class="uk-button uk-button-text"> <a routerLink="/personal" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Invite to subscribe </span> <span>Personal Info </span>
</a> </a>
<br> <br>
<a routerLink="/manage-user-notifications" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text"> <a routerLink="/manage-user-notifications" routerLinkActive="active" [queryParams]="{communityId: this.communityId}" class="uk-button uk-button-text">
<span>Notification settings </span> <span>Notification settings </span>
</a> </a>
</p> </div>
</div> </div>
</div> </div>
</div> </div>