dnet40/modules/uoa-services-portal/trunk/portal-2/src/app/landingPages/dataProvider/organizationsTab.component.ts @ 46561
1 |
import {Component, Input} from '@angular/core'; |
---|---|
2 |
|
3 |
@Component({ |
4 |
selector: 'organizationsTab', |
5 |
template: ` |
6 |
<div *ngIf=" !organizations || organizations.length == 0" class = "uk-alert">
|
7 |
There are no organizations
|
8 |
</div>
|
9 |
|
10 |
<div *ngIf=" organizations && organizations.length > 0">
|
11 |
<p>
|
12 |
The results below are discovered through our pilot algorithms.
|
13 |
<a href="mailto:feedback@openaire.eu">Let us know how we are doing!</a>
|
14 |
</p>
|
15 |
|
16 |
<div *ngFor="let item of organizations">
|
17 |
<p *ngIf=" item != undefined && item['id'] != undefined">
|
18 |
<!--a href="{{item['url']}}"-->
|
19 |
<a [queryParams]="{organizationId: item.id}" routerLinkActive="router-link-active" routerLink="/search/organization">
|
20 |
{{item['name']}}
|
21 |
</a>
|
22 |
</p>
|
23 |
<p *ngIf="item['id'] == undefined">
|
24 |
{{item['name']}}
|
25 |
</p>
|
26 |
</div>
|
27 |
</div>
|
28 |
`
|
29 |
})
|
30 |
|
31 |
export class OrganizationsTabComponent { |
32 |
|
33 |
@Input() organizations: {"name": string, "id": string}[] ; |
34 |
|
35 |
constructor () {} |
36 |
|
37 |
ngOnInit() {} |
38 |
|
39 |
ngOnDestroy() {} |
40 |
}
|