Revision 59189
Added by Konstantina Galouni almost 4 years ago
curators.component.html | ||
---|---|---|
1 | 1 |
<schema2jsonld *ngIf="url" [URL]="url" [name]="pageTitle" type="other"></schema2jsonld> |
2 | 2 |
|
3 | 3 |
<ng-container *ngIf="longView else shortView"> |
4 |
<div class="image-front-topbar uk-section-default uk-position-relative" |
|
5 |
uk-scrollspy="{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}" |
|
6 |
tm-header-transparent="light"> |
|
7 |
<div style=" min-height: 650px;" class="uk-section uk-padding-remove-bottom uk-flex uk-flex-middle"> |
|
8 |
<div class="uk-align-center"> |
|
9 |
<div class="uk-section"> |
|
10 |
<div class="uk-container"> |
|
11 |
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" |
|
12 |
[texts]="pageContents['top']"></helper> |
|
13 |
<div *ngIf="showLoading" class="uk-margin-large"> |
|
14 |
<div class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><span |
|
15 |
class="loading-gif uk-align-center"></span></div> |
|
4 |
<!-- <div class="image-front-topbar uk-section-default uk-position-relative"--> |
|
5 |
<!-- uk-scrollspy="{"target":"[uk-scrollspy-class]","cls":"uk-animation-fade","delay":false}"--> |
|
6 |
<!-- tm-header-transparent="light">--> |
|
7 |
<!-- uk-flex uk-flex-middle--> |
|
8 |
<div style=" min-height: 650px;" |
|
9 |
class="uk-section uk-padding-remove-top"> |
|
10 |
<div class="uk-align-center"> |
|
11 |
<breadcrumbs addClass="uk-margin-large-left uk-margin-remove-bottom uk-margin-small-top" |
|
12 |
[breadcrumbs]="breadcrumbs"></breadcrumbs> |
|
13 |
|
|
14 |
<div class="uk-container"> |
|
15 |
<div *ngIf="showLoading" class="uk-margin-large"> |
|
16 |
<div class="uk-animation-fade uk-margin-top uk-width-1-1" role="alert"><span |
|
17 |
class="loading-gif uk-align-center"></span></div> |
|
18 |
</div> |
|
19 |
<!-- && curators.length > 0--> |
|
20 |
<div *ngIf="!showLoading"> |
|
21 |
<div class="uk-margin-medium-top uk-h2"> |
|
22 |
<span class="">Curators</span> |
|
23 |
<!-- <span> ({{curators.length}})</span>--> |
|
24 |
</div> |
|
25 |
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" |
|
26 |
[texts]="pageContents['top']"></helper> |
|
27 |
<div *ngIf="curators"> |
|
28 |
<div *ngFor="let curator of curators let i=index;" |
|
29 |
class="white-box-with-border uk-margin-top uk-margin-remove-left uk-animation-fade" uk-grid> |
|
30 |
<div class="uk-width-expand uk-padding uk-first-column"> |
|
31 |
<div class="uk-flex uk-flex-middle"> |
|
32 |
<div> |
|
33 |
<img *ngIf="curator.photo && curator.photo !== ''" class="uk-border-circle curator-photo" |
|
34 |
src="{{downloadUrl + curator.photo}}" alt="Curator Photo"> |
|
35 |
<img *ngIf="!curator.photo || curator.photo == ''" class="uk-border-circle curator-photo" |
|
36 |
src="../../assets/common-assets/curator-default.png" alt="Curator Photo"> |
|
37 |
</div> |
|
38 |
<div class="uk-width-expand uk-text-large uk-margin-left uk-text-bold"> |
|
39 |
{{curator.name}} |
|
40 |
</div> |
|
41 |
</div> |
|
42 |
<div class="uk-margin-medium-top uk-height-max-large uk-overflow-auto"> |
|
43 |
<div class="uk-text-muted"> |
|
44 |
Biography |
|
45 |
</div> |
|
46 |
<div *ngIf="showMore[i]"> {{curator.bio}}}</div> |
|
47 |
<div *ngIf="!showMore[i]">{{_format(curator.bio)}}</div> |
|
48 |
<div class="uk-margin-top uk-text-right"> |
|
49 |
<a *ngIf="curator.bio.length > maxCharacters && !showMore[i]" class="uk-text-bold" |
|
50 |
(click)="toggle(i)"> |
|
51 |
Show more |
|
52 |
</a> |
|
53 |
<a *ngIf="curator.bio.length > maxCharacters && showMore[i]" class="uk-text-bold" |
|
54 |
(click)="toggle(i)"> |
|
55 |
Show less |
|
56 |
</a> |
|
57 |
</div> |
|
58 |
</div> |
|
16 | 59 |
</div> |
17 |
<div *ngIf="!showLoading && curators.length > 0"> |
|
18 |
<h4 class="uk-margin-top uk-h4"> |
|
19 |
<span class="uk-text-bold">Curators</span> |
|
20 |
<span> ({{curators.length}})</span> |
|
21 |
</h4> |
|
22 |
<div *ngFor="let curator of curators let i=index;" |
|
23 |
class="uk-width-1-1 uk-card uk-card-default uk-card-body uk-margin-top uk-animation-slide-top"> |
|
24 |
<div |
|
25 |
[class]="(curator.affiliations.length > 0 && curator.affiliations.length <= 2)?'uk-grid-divider uk-flex uk-flex-middle':''" |
|
26 |
uk-grid> |
|
27 |
|
|
28 |
<div class="uk-width-1-2 uk-first-column"> |
|
29 |
<div class="uk-flex uk-flex-middle"> |
|
30 |
<div> |
|
31 |
<img *ngIf="curator.photo && curator.photo !== ''" class="uk-border-circle curator-photo" |
|
32 |
src="{{downloadUrl + curator.photo}}" alt="Curator Photo"> |
|
33 |
<img *ngIf="!curator.photo || curator.photo == ''" class="uk-border-circle curator-photo" |
|
34 |
src="../../assets/common-assets/curator-default.png" alt="Curator Photo"> |
|
35 |
</div> |
|
36 |
<div class="uk-width-expand uk-margin-left uk-text-bold"> |
|
37 |
{{curator.name}} |
|
38 |
</div> |
|
39 |
</div> |
|
60 |
<div *ngIf="curator.affiliations && curator.affiliations.length > 0" class="uk-width-1-3@m uk-width-1-2@s uk-width-1-1 uk-padding"> |
|
61 |
<div class="uk-child-width-1-2 uk-flex uk-flex-middle" uk-grid> |
|
62 |
<div class="uk-text-muted uk-width-1-1"> |
|
63 |
Affiliations |
|
40 | 64 |
</div> |
41 |
|
|
42 |
|
|
43 |
<div *ngIf="(curator.affiliations.length > 0 && curator.affiliations.length <= 2)" |
|
44 |
class="uk-width-1-2"> |
|
45 |
<div class="uk-flex uk-flex-middle"> |
|
46 |
<div class="uk-width-expand uk-margin-left uk-text-meta uk-flex-first"> |
|
47 |
Affiliations |
|
48 |
</div> |
|
49 |
<affiliations [longView]="false" [affiliations]="curator.affiliations" |
|
50 |
[affiliationsInSlider]="curator.affiliations.length" |
|
51 |
class="uk-width-2-3"></affiliations> |
|
52 |
</div> |
|
53 |
</div> |
|
54 |
|
|
55 |
<div *ngIf="(curator.affiliations.length > 2)" class="uk-width-1-1 uk-margin-top"> |
|
56 |
<div class="uk-text-meta uk-margin-small-bottom"> |
|
57 |
Affiliations |
|
58 |
</div> |
|
59 |
<affiliations [longView]="false" [affiliations]="curator.affiliations"></affiliations> |
|
60 |
</div> |
|
61 |
<div class="uk-width-1-1 uk-first-column uk-margin-top uk-height-max-large uk-overflow-auto"> |
|
62 |
<div class="uk-text-meta uk-margin-small-bottom"> |
|
63 |
Biography |
|
64 |
</div> |
|
65 |
<div class="uk-margin-top"> |
|
66 |
<p *ngIf="showMore[i]" class="biography"> {{curator.bio}}}</p> |
|
67 |
<p *ngIf="!showMore[i]" class="biography">{{_format(curator.bio)}}</p> |
|
68 |
</div> |
|
69 |
</div> |
|
70 |
<div class="uk-width-1-1 uk-margin-top uk-text-right"> |
|
71 |
<a *ngIf="curator.bio.length > maxCharacters && !showMore[i]" class="uk-text-bold" |
|
72 |
(click)="toggle(i)"> |
|
73 |
Show more |
|
65 |
<div *ngFor="let affiliation of curator.affiliations"> |
|
66 |
<span *ngIf="!affiliation.website_url"> |
|
67 |
<img [src]="affiliation.logo_url" [alt]="affiliation.name"> |
|
68 |
</span> |
|
69 |
<a *ngIf="affiliation.website_url" |
|
70 |
target="_blank" [href]="urlPrefix(affiliation.website_url) + affiliation.website_url"> |
|
71 |
<img [src]="affiliation.logo_url" [alt]="affiliation.name"> |
|
74 | 72 |
</a> |
75 |
<a *ngIf="curator.bio.length > maxCharacters && showMore[i]" class="uk-text-bold" |
|
76 |
(click)="toggle(i)"> |
|
77 |
Show less |
|
78 |
</a> |
|
79 | 73 |
</div> |
80 | 74 |
</div> |
81 | 75 |
</div> |
82 | 76 |
</div> |
83 |
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" |
|
84 |
[texts]="pageContents['bottom']"></helper> |
|
85 | 77 |
</div> |
86 | 78 |
</div> |
79 |
<helper *ngIf="pageContents && pageContents['bottom'] && pageContents['bottom'].length > 0" |
|
80 |
[texts]="pageContents['bottom']"></helper> |
|
87 | 81 |
</div> |
88 | 82 |
</div> |
89 | 83 |
</div> |
84 |
<!-- </div>--> |
|
90 | 85 |
</ng-container> |
91 | 86 |
<ng-template #shortView> |
92 |
<span *ngIf=" curators && curators.length > 0" class="lowOpacityColor uk-width-1-1"> |
|
93 |
Curators |
|
87 |
<div *ngIf=" curators && curators.length > 0" class="uk-grid"> |
|
88 |
<span class="lowOpacityColor uk-text-muted uk-width-auto"> |
|
89 |
Curated by: |
|
94 | 90 |
</span> |
95 |
<div class="uk-grid"> |
|
96 |
<div *ngFor="let curator of curators let i=index;" class="uk-flex uk-flex-middle uk-width-1-2 uk-margin-small-top"> |
|
97 |
<div> |
|
98 |
<img *ngIf="curator.photo && curator.photo !== ''" class="uk-border-circle curator-photo" |
|
99 |
src="{{downloadUrl + curator.photo}}" alt="Curator Photo"> |
|
100 |
<img *ngIf="!curator.photo || curator.photo == ''" class="uk-border-circle curator-photo" |
|
101 |
src="../../assets/common-assets/curator-default.png" alt="Curator Photo"> |
|
102 |
</div> |
|
103 |
<div class="uk-width-expand uk-margin-left"> |
|
104 |
<a>{{curator.name}}</a> |
|
105 |
<div class="default-dropdown uk-margin-remove-top uk-padding-medium uk-width-medium" |
|
106 |
uk-dropdown="pos: bottom-left; mode:click; "> |
|
107 |
<div class="uk-grid uk-grid-stack"> |
|
108 |
<div class="uk-first-column uk-flex uk-flex-middle uk-grid"> |
|
109 |
<div> |
|
91 |
<div class="uk-width-expand uk-padding-remove uk-overflow-auto"> |
|
92 |
<div class="uk-height-max-medium"> |
|
93 |
<span *ngFor="let curator of curators.slice(0,numberOfCurators) let i=index;" class="space uk-display-inline-block"> |
|
94 |
<!-- <span>--> |
|
95 |
<!-- <img *ngIf="curator.photo && curator.photo !== ''" class="uk-border-circle curator-photo"--> |
|
96 |
<!-- src="{{downloadUrl + curator.photo}}" alt="Curator Photo">--> |
|
97 |
<!-- <img *ngIf="!curator.photo || curator.photo == ''" class="uk-border-circle curator-photo"--> |
|
98 |
<!-- src="../../assets/common-assets/curator-default.png" alt="Curator Photo">--> |
|
99 |
<!-- </span>--> |
|
100 |
|
|
101 |
<a class=""> |
|
102 |
<span class="user-circle-background"> |
|
103 |
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> |
|
104 |
<path |
|
105 |
d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path> |
|
106 |
<path d="M0 0h24v24H0z" fill="none"></path> |
|
107 |
</svg> |
|
108 |
</span> |
|
109 |
<span class="space">{{curator.name}}</span> |
|
110 |
</a> |
|
111 |
<span class="default-dropdown uk-margin-remove-top uk-padding-medium uk-width-medium" |
|
112 |
uk-dropdown="pos: bottom-left; mode:click; "> |
|
113 |
<span class="uk-grid uk-grid-stack"> |
|
114 |
<span class="uk-first-column uk-flex uk-flex-middle uk-grid"> |
|
115 |
<span> |
|
110 | 116 |
<img *ngIf="curator.photo && curator.photo !== ''" class="uk-border-circle curator-photo" |
111 | 117 |
src="{{downloadUrl + curator.photo}}" alt="Curator Photo"> |
112 | 118 |
<img *ngIf="!curator.photo || curator.photo == ''" class="uk-border-circle curator-photo" |
113 | 119 |
src="../../assets/common-assets/curator-default.png" alt="Curator Photo"> |
114 |
</div>
|
|
115 |
<div class="uk-width-expand uk-h5 ignoreCommunityPanelBackground">
|
|
120 |
</span>
|
|
121 |
<span class="uk-width-expand uk-h5 ignoreCommunityPanelBackground">
|
|
116 | 122 |
{{curator.name}} |
117 |
</div>
|
|
118 |
</div>
|
|
119 |
<div *ngIf="curator.affiliations.length > 0" class="uk-width-1-1">
|
|
123 |
</span>
|
|
124 |
</span>
|
|
125 |
<span *ngIf="curator.affiliations.length > 0" class="uk-width-1-1">
|
|
120 | 126 |
<hr class="uk-margin-top"> |
121 | 127 |
<span class="uk-text-left uk-margin"> |
122 | 128 |
Affiliations |
123 | 129 |
</span> |
124 | 130 |
<span> ({{curator.affiliations.length}})</span> |
125 |
<div class="uk-width-1-1">
|
|
131 |
<span class="uk-width-1-1">
|
|
126 | 132 |
<affiliations [affiliations]="curator.affiliations" |
127 | 133 |
[affiliationsInSlider]="2" |
128 | 134 |
[arrows]="false" |
129 | 135 |
[sliderOptions]="'autoplay: true; autoplay-interval: 2000'"></affiliations> |
130 |
</div>
|
|
131 |
</div>
|
|
132 |
<div class="uk-width-1-1">
|
|
136 |
</span>
|
|
137 |
</span>
|
|
138 |
<span class="uk-width-1-1">
|
|
133 | 139 |
<a routerLink="/curators" class="uk-align-right uk-link ignoreCommunityPanelBackground"> |
134 | 140 |
View more details |
135 | 141 |
</a> |
136 |
</div> |
|
137 |
</div> |
|
138 |
</div> |
|
142 |
</span> |
|
143 |
</span> |
|
144 |
</span> |
|
145 |
<span *ngIf="i < curators.length-1 && i < numberOfCurators-1">, </span> |
|
146 |
</span> |
|
147 |
<span *ngIf="numberOfCurators == curatorsLimit && curators.length > curatorsLimit"> ... </span> |
|
139 | 148 |
</div> |
140 | 149 |
</div> |
150 |
<div *ngIf="numberOfCurators == curatorsLimit && curators.length > curatorsLimit" class="uk-width-1-1 uk-text-right uk-margin-small-top"> |
|
151 |
<a (click)="numberOfCurators = curators.length;"> |
|
152 |
View all {{curators.length | number}} curators |
|
153 |
</a> |
|
154 |
</div> |
|
155 |
<div *ngIf="numberOfCurators > curatorsLimit" class="uk-width-1-1 uk-text-right uk-margin-small-top"> |
|
156 |
<a (click)="numberOfCurators = curatorsLimit;">View less curators</a> |
|
157 |
</div> |
|
141 | 158 |
</div> |
142 | 159 |
</ng-template> |
Also available in: Unified diff
[use-UoaAdminToolsLibrary | Connect]: Merge trunk into branch.