7
7
< main id ="main-content ">
8
8
< div class ="wrapper ">
9
9
< div class ="row d-flex justify-content-between pt-3 pb-5 ">
10
- < div class ="col-12 col-md-6 px-0 ">
11
- < div
12
- class ="row d-flex text-capitalize "
13
- *ngIf ="profileService.currentEditorProfileName | async "
14
- >
10
+ < div class ="col-6 col-md-6 px-0 ">
11
+ < div class ="row d-flex text-capitalize " *ngIf ="profileService.currentEditorProfileName | async ">
15
12
< h1 class ="col-12 px-0 ">
16
13
{{ profileService.currentEditorProfileName | async }}
17
14
</ h1 >
18
15
< div class ="col align-self-center px-0 ">
19
- < img
20
- class ="orcid-icon mt-n1 pe-2 "
21
- src ="assets/img/orcid_icon.svg "
22
- alt ="Orcid -palvelun logo "
23
- />
24
- < span > {{ orcid }}</ span >
16
+ < img class ="orcid-icon mt-n1 pe-2 " src ="assets/img/orcid_icon.svg " alt ="Orcid -palvelun logo " />
17
+ < span > {{orcid}}</ span >
25
18
</ div >
26
19
</ div >
27
20
</ div >
28
21
22
+ < div class ="col-6 col-md-6 d-flex justify-content-end align-items-center ">
23
+ < ng-container *ngIf ="
24
+ (publicationsService.currentPublicationPayload | async).length ||
25
+ (datasetsService.currentDatasetPayload | async).length ||
26
+ (fundingsService.currentFundingPayload | async).length ||
27
+ (patchService.currentPatchItems | async).length ||
28
+ (collaborationsService.currentCollaborationsPayload | async).length ">
29
+
30
+
31
+ < app-primary-action-button class ="col-auto "i18n-content ="@@publishEllipsis " content ="Julkaise... " (click) ="openDialog(publishUpdatedProfile,publishUpdatedProfileTemplate,dataToPublishTemplate,publishUpdatedProfileDialogActions,false) "> </ app-primary-action-button >
32
+
33
+ <!-- Discard draft -->
34
+ < button class ="col-auto pe-lg-0 " mat-button color ="primary " i18n ="@@discardChanges " (click) ="openDialog(discardChanges, discardChangesTemplate, discardChangesActions, undefined, false) ">
35
+ Hylkää muutokset...
36
+ </ button >
37
+
38
+ < ng-template #discardChangesTemplate >
39
+ < p i18n ="@@discardSessionChanges ">
40
+ Hylätäänkö julkaisemattomat muutokset?
41
+ </ p >
42
+ </ ng-template >
43
+
44
+
45
+ </ ng-container >
46
+ </ div >
47
+
29
48
<!-- <div class="col-5 d-none d-md-block px-lg-0">
30
49
<div class="row justify-content-end align-items-center">
31
50
<div class="col-auto profile-image-container opacity-3">
@@ -40,96 +59,89 @@ <h1 class="col-12 px-0">
40
59
</div>
41
60
</div> -->
42
61
</ div >
62
+
63
+
43
64
< div class ="row profile ">
44
65
< div class ="col-12 col-md-6 px-0 align-self-end ">
45
66
< h2 class ="h4 d-inline-block " i18n ="@@publicProfile ">
46
67
Profiili
47
68
</ h2 >
48
- < span
49
- class ="d-inline-block ps-0 ps-lg-3 h6 fst-italic "
50
- *ngIf ="
69
+
70
+ < ng-container *ngIf ="
51
71
(publicationsService.currentPublicationPayload | async).length ||
52
72
(datasetsService.currentDatasetPayload | async).length ||
53
73
(fundingsService.currentFundingPayload | async).length ||
54
74
(patchService.currentPatchItems | async).length ||
55
75
(collaborationsService.currentCollaborationsPayload | async).length
56
- "
57
- >
58
- - < ng-container i18n ="@@draft "> Luonnos</ ng-container > </ span
59
- >
76
+ ">
77
+
78
+ < span class ="d-inline-block ps-0 ps-lg-3 h6 fst-italic ">
79
+ - < ng-container i18n ="@@draft "> Luonnos</ ng-container >
80
+ </ span >
81
+ </ ng-container >
82
+
83
+
60
84
</ div >
61
85
62
86
<!-- Handle draft publish -->
63
87
< ng-template #publishUpdatedProfileTemplate >
64
88
< div class ="row ">
65
89
< p class ="col ">
66
- < ng-container i18n ="@@updatedProfilePublishedAt "
67
- > Valitsemalla "Julkaise", valitsemasi tiedot julkaistaan
68
- Tiedejatutkimus.fi-palvelussa.</ ng-container
69
- >
90
+ < ng-container i18n ="@@updatedProfilePublishedAt ">
91
+ Valitsemalla "Julkaise", valitsemasi tiedot julkaistaan
92
+ Tiedejatutkimus.fi-palvelussa.
93
+ </ ng-container >
94
+
70
95
< br />
71
- < ng-container i18n ="@@updatingPublicDataTakesFewMinutes "
72
- > Tietojen päivittyminen voi kestää muutaman
73
- minuutin.</ ng-container
74
- >
96
+
97
+ < ng-container i18n ="@@updatingPublicDataTakesFewMinutes ">
98
+ Tietojen päivittyminen voi kestää muutaman
99
+ minuutin.
100
+ </ ng-container >
75
101
</ p >
76
102
</ div >
77
103
</ ng-template >
78
104
79
105
< ng-template #dataToPublishTemplate >
80
- < app-draft-summary
81
- *ngIf ="profileData "
82
- [profileData] ="profileData "
83
- > </ app-draft-summary >
106
+ < app-draft-summary *ngIf ="profileData " [profileData] ="profileData "> </ app-draft-summary >
84
107
</ ng-template >
85
108
86
- < div
87
- class ="col px-0 py-2 text-end "
88
- *ngIf ="
109
+ < div class ="col px-0 py-2 text-end ">
110
+ < div style ='display: flex; justify-content: end; align-items: center '>
111
+ < div style ="margin-right: 1rem "> Tarkastele julkista profiiliasi Tiedejatutkimus.fi:ssä</ div >
112
+ < a [routerLink] ="['/', 'results', 'person', orcid] " target ="_blank ">
113
+ < app-primary-action-button class ="" i18n-content ="@@publish " content ="Profiiliin "> </ app-primary-action-button >
114
+ </ a >
115
+ </ div >
116
+ </ div >
117
+
118
+ < ng-container *ngIf ="
89
119
(publicationsService.currentPublicationPayload | async).length ||
90
120
(datasetsService.currentDatasetPayload | async).length ||
91
121
(fundingsService.currentFundingPayload | async).length ||
92
122
(patchService.currentPatchItems | async).length ||
93
- (collaborationsService.currentCollaborationsPayload | async).length
94
- "
95
- >
96
- < app-primary-action-button
97
- class ="col-auto "
98
- i18n-content ="@@publishEllipsis "
99
- content ="Julkaise... "
100
- (click) ="
101
- openDialog({
102
- title: publishUpdatedProfile,
103
- template: publishUpdatedProfileTemplate,
104
- extraContentTemplate: dataToPublishTemplate,
105
- actions: publishUpdatedProfileDialogActions
106
- })
107
- "
108
- > </ app-primary-action-button >
109
-
110
- <!-- Discard draft -->
111
- < button
112
- mat-button
113
- color ="primary "
114
- class ="col-auto pe-lg-0 "
115
- (click) ="
116
- openDialog({
117
- title: discardChanges,
118
- template: discardChangesTemplate,
119
- actions: discardChangesActions
120
- })
121
- "
122
- i18n ="@@discardChanges "
123
- >
124
- Hylkää muutokset...
125
- </ button >
126
-
127
- < ng-template #discardChangesTemplate >
128
- < p i18n ="@@discardSessionChanges ">
129
- Hylätäänkö julkaisemattomat muutokset?
130
- </ p >
131
- </ ng-template >
132
- </ div >
123
+ (collaborationsService.currentCollaborationsPayload | async).length ">
124
+
125
+ <!--
126
+
127
+ <app-primary-action-button class="col-auto"i18n-content="@@publishEllipsis" content="Julkaise..." (click)="openDialog(publishUpdatedProfile,publishUpdatedProfileTemplate,dataToPublishTemplate,publishUpdatedProfileDialogActions,false)"></app-primary-action-button>
128
+
129
+ <!– Discard draft –>
130
+ <button class="col-auto pe-lg-0" mat-button color="primary" i18n="@@discardChanges" (click)="openDialog(discardChanges, discardChangesTemplate, discardChangesActions, undefined, false)">
131
+ Hylkää muutokset...
132
+ </button>
133
+
134
+ <ng-template #discardChangesTemplate>
135
+ <p i18n="@@discardSessionChanges">
136
+ Hylätäänkö julkaisemattomat muutokset?
137
+ </p>
138
+ </ng-template>
139
+
140
+ -->
141
+
142
+ </ ng-container >
143
+
144
+
133
145
</ div >
134
146
135
147
<!-- Groups -->
@@ -144,11 +156,10 @@ <h2 class="h4 d-inline-block" i18n="@@publicProfile">
144
156
> </ app-contact-card >
145
157
</ aside >
146
158
147
- < app-profile-summary
148
- *ngIf ="profileData; else loadingTemplate "
149
- class ="d-block pt-3 "
150
- [profileData] ="profileData "
151
- > </ app-profile-summary >
159
+ < ng-container *ngIf ="profileData; else loadingTemplate " >
160
+ < app-profile-summary class ="d-block pt-3 " [profileData] ="profileData "> </ app-profile-summary >
161
+ </ ng-container >
162
+
152
163
153
164
< ng-template #loadingTemplate >
154
165
< mat-spinner class ="mx-auto mt-3 " [diameter] ="80 "> </ mat-spinner >
@@ -160,42 +171,36 @@ <h2 class="h4 d-inline-block" i18n="@@publicProfile">
160
171
< ng-container *ngIf ="appSettingsService.myDataSettings.debug ">
161
172
< div >
162
173
< button (click) ="reset() " mat-raised-button > Reset</ button >
174
+
163
175
< div class ="row ">
164
- currentPublicationPayload:
165
- {{
166
- (publicationsService.currentPublicationPayload | async).length
167
- }}
176
+ currentPublicationPayload: {{ (publicationsService.currentPublicationPayload | async).length }}
168
177
</ div >
178
+
169
179
< div class ="row ">
170
- currentDatasetPayload:
171
- {{ (datasetsService.currentDatasetPayload | async).length }}
180
+ currentDatasetPayload: {{ (datasetsService.currentDatasetPayload | async).length }}
172
181
</ div >
182
+
173
183
< div class ="row ">
174
- currentFundingPayload:
175
- {{ (fundingsService.currentFundingPayload | async).length }}
184
+ currentFundingPayload: {{ (fundingsService.currentFundingPayload | async).length }}
176
185
</ div >
186
+
177
187
< div class ="row ">
178
- currentPatchItems:
179
- {{ (patchService.currentPatchItems | async).length }}
188
+ currentPatchItems: {{ (patchService.currentPatchItems | async).length }}
180
189
</ div >
190
+
181
191
< div class ="row ">
182
- currentCollaborationsPayload:
183
- {{
184
- (collaborationsService.currentCollaborationsPayload | async)
185
- .length
186
- }}
192
+ currentCollaborationsPayload: {{ (collaborationsService.currentCollaborationsPayload | async).length }}
187
193
</ div >
188
194
</ div >
189
195
</ ng-container >
190
196
191
197
<!-- Contact card in desktop view -->
192
- < aside *ngIf ="profileData " class ="profile-card d-none d-lg-block ">
193
- < app-contact-card
194
- i18n-label ="@@contactInfo "
195
- label ="Yhteystiedot "
196
- [data] ="profileData "
197
- > </ app-contact-card >
198
- </ aside >
198
+ < ng-container *ngIf ="profileData ">
199
+ < aside class ="profile-card d-none d-lg-block ">
200
+ < app-contact-card i18n-label ="@@contactInfo " label ="Yhteystiedot " [data] ="profileData "> </ app-contact-card >
201
+ </ aside >
202
+ </ ng-container >
203
+
199
204
200
205
<!-- Collaboration -->
201
206
<!--
@@ -218,6 +223,7 @@ <h2 class="h4 d-inline-block" i18n="@@publicProfile">
218
223
<!-- Reusable dialog -->
219
224
< app-dialog
220
225
*ngIf ="showDialog "
226
+
221
227
[template] ="dialogTemplate "
222
228
[title] ="dialogTitle "
223
229
[extraContentTemplate] ="dialogExtraContentTemplate "
0 commit comments