Revision 58648
Added by Konstantina Galouni almost 4 years ago
user.component.ts | ||
---|---|---|
15 | 15 |
@Component({ |
16 | 16 |
selector: 'openaire-user', |
17 | 17 |
template: ` |
18 |
<div id="tm-main" class="uk-section uk-margin-small-top tm-middle"> |
|
19 |
|
|
20 |
<user [mainComponent]=false></user> |
|
21 |
<div *ngIf="!server" class=" uk-container uk-container-small uk-position-relative"> |
|
22 |
|
|
23 |
<div *ngIf="usercomponent.errorCode == '6' && !isSubscribed" class="uk-alert uk-alert-warning"> |
|
24 |
<span *ngIf="!isSubscribed ">For this action you have to <span *ngIf="!loggedIn">login and</span> subscribe to the research community. |
|
25 |
<span *ngIf="subscribe && !subscribeLoading "> <span *ngIf="!loggedIn">Login and </span>Subscribe <a [class]="'' + (subscribe.loading ? ' uk-disabled' : '')" (click)="subscribeTo()" > here</a>.</span> |
|
26 |
</span> |
|
27 |
<span *ngIf="subscribeLoading ">Subscribing to community....</span> |
|
28 |
<span *ngIf="subscribeError ">An error occured while trying to subscribe to community....</span> |
|
29 |
|
|
18 |
<div id="tm-main" class="uk-section tm-middle"> |
|
19 |
<div class="uk-margin-small-top"> |
|
20 |
<user [mainComponent]=false></user> |
|
21 |
<div *ngIf="!server" class=" uk-container uk-container-small uk-position-relative"> |
|
22 |
|
|
23 |
<div *ngIf="usercomponent.errorCode == '6' && !isSubscribed" class="uk-alert uk-alert-warning"> |
|
24 |
<span *ngIf="!isSubscribed ">For this action you have to <span *ngIf="!loggedIn">login and</span> subscribe to the research community. |
|
25 |
<span *ngIf="subscribe && !subscribeLoading "> <span *ngIf="!loggedIn">Login and </span>Subscribe <a [class]="'' + (subscribe.loading ? ' uk-disabled' : '')" (click)="subscribeTo()" > here</a>.</span> |
|
26 |
</span> |
|
27 |
<span *ngIf="subscribeLoading ">Subscribing to community....</span> |
|
28 |
<span *ngIf="subscribeError ">An error occured while trying to subscribe to community....</span> |
|
29 |
|
|
30 |
</div> |
|
31 |
<div *ngIf="usercomponent.errorCode == '7'" class="uk-alert uk-alert-warning"> |
|
32 |
This action requires authentication. |
|
33 |
<span *ngIf="!loggedIn"> |
|
34 |
Please <a class="" (click)="login()" > sign in</a> to continue. |
|
35 |
</span> |
|
36 |
</div> |
|
37 |
</div> |
|
38 |
</div> |
|
30 | 39 |
</div> |
31 |
<div *ngIf="usercomponent.errorCode == '7'" class="uk-alert uk-alert-warning"> |
|
32 |
This action requires authentication. |
|
33 |
<span *ngIf="!loggedIn"> |
|
34 |
Please <a class="" (click)="login()" > sign in</a> to continue. |
|
35 |
</span> |
|
36 |
</div> |
|
37 |
|
|
38 |
|
|
39 |
</div> |
|
40 |
</div> |
|
41 | 40 |
<subscribe [communityId]="communityId" [showTemplate]= false class="" (subscribeEvent)="afterSubscibeEvent($event)"></subscribe> |
42 | 41 |
` |
43 | 42 |
}) |
Also available in: Unified diff
[Trunk | Connect]:
1. community.component.html: Remove 'communityBackground' class | Use class 'generalSearchForm' instead of 'publicationsSearchForm'.
2. contentPage.component.ts & curators.component.html & nationalBulletinsPage.component.ts & organizationsPage.component.ts & projectsPage.component.ts & subjects.component.ts & invite.component.html:
Remove 'communityBackground' class.
3. shareInZenodo.component.html: Remove 'communityBackground' class | Remove 'uk-margin-top' from tag with class 'communityPanelBackground'.
4. user.component.ts: Remove 'communityBackground' class | Move 'uk-margin-small-top' after section tag.
5. connect-custom.css: Add background css for '.communityApp .custom-main-content', '.generalSearchForm .subtitle' and '.generalSearchForm .title'.
6. customization.css: Remove css for '.communityBackground' (was added during connect redesign).