parameterize claims admin to show proper link, title for connect - remove extra unclosed divs

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51567 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2018-03-29 08:34:44 +00:00
parent f8f2270a78
commit 5548116a88
1 changed files with 12 additions and 7 deletions

View File

@ -6,11 +6,8 @@ import { Meta} from '../../sharedComponents/metaService';
@Component({ @Component({
selector: 'claims-admin', selector: 'claims-admin',
template: ` template: `
<div id="tm-main" class=" uk-section uk-margin-small-top tm-middle" >
<div uk-grid uk-grid>
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
<div id="tm-main" class=" uk-section uk-margin-small-top tm-middle" > <div id="tm-main" [class]="((isConnect)?'':'uk-section') +' uk-margin-small-top tm-middle'" >
<div uk-grid uk-grid> <div uk-grid uk-grid>
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first "> <div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
<div class="uk-container"> <div class="uk-container">
@ -18,7 +15,10 @@ import { Meta} from '../../sharedComponents/metaService';
Claims Administrator Claims Administrator
</div> </div>
<div> <div>
<div class="uk-text-right"><a routerLink="/participate/claim">Add more Links?</a></div> <div class="uk-text-right">
<a *ngIf="!fetchBy || fetchBy != 'Context'" routerLink="/participate/claim">Add more Links?</a>
<a *ngIf="isConnect && fetchBy && fetchBy == 'Context' && fetchId" [href]="'https://beta.'+fetchId+'.openaire.eu/participate/claim'" target="_blank">Add more Links?</a>
</div>
<displayClaims [enableDelete]=true [myClaims]=false [isAdmin]=true [fetchBy]= fetchBy [fetchId]=fetchId <displayClaims [enableDelete]=true [myClaims]=false [isAdmin]=true [fetchBy]= fetchBy [fetchId]=fetchId
[communityId]="(fetchBy && fetchBy == 'Context')?fetchId:null"></displayClaims> [communityId]="(fetchBy && fetchBy == 'Context')?fetchId:null"></displayClaims>
</div> </div>
@ -33,12 +33,17 @@ import { Meta} from '../../sharedComponents/metaService';
export class ClaimsAdminComponent { export class ClaimsAdminComponent {
@Input() fetchBy:string; @Input() fetchBy:string;
@Input() fetchId:string; @Input() fetchId:string;
@Input() isConnect:boolean = false;
constructor ( private _meta: Meta ) { constructor ( private _meta: Meta ) {
this._meta.setTitle("OpenAIRE | Claims Administrator"); if(this.isConnect){
if(this.fetchBy && this.fetchBy == "Context"){ this._meta.setTitle("OpenAIRE Connect | Claims Administrator");
}else{
this._meta.setTitle("OpenAIRE | Claims Administrator");
} }
} }
ngOnInit() { ngOnInit() {
} }