1 |
61381
|
k.triantaf
|
<div>
|
2 |
|
|
<div [id]="(mainComponent)?'tm-main':''" [class]="(mainComponent)?'uk-section tm-middle':''">
|
3 |
|
|
<div *ngIf="loading" class="uk-flex uk-flex-center">
|
4 |
|
|
<loading></loading>
|
5 |
|
|
</div>
|
6 |
|
|
<div *ngIf="!loading" class="uk-grid" uk-grid>
|
7 |
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
8 |
|
|
|
9 |
|
|
<div *ngIf="!server" class="uk-container uk-container-small uk-position-relative">
|
10 |
|
|
|
11 |
|
|
<div *ngIf="loggedIn && !errorCode" class="">
|
12 |
|
|
<div class="uk-h2 uk-text-center">User Information</div>
|
13 |
|
|
<div>
|
14 |
|
|
<span class="uk-text-muted"> Full name </span> <span> {{user.fullname}} </span>
|
15 |
|
|
</div>
|
16 |
|
|
<div>
|
17 |
|
|
<span class="uk-text-muted"> E-mail </span> <span> {{user.email}} </span>
|
18 |
|
|
</div>
|
19 |
|
|
<div *ngIf="user.role.length > 1">
|
20 |
|
|
<span class="uk-text-muted"> Roles </span> <span> {{getTheRolesFormatted(user.role)}} </span>
|
21 |
|
|
</div>
|
22 |
|
|
<div class="uk-margin-top " *ngIf="user.role.length > 1">
|
23 |
|
|
<a class="uk-button uk-button-primary" href="https://aai.openaire.eu/roles/index.php"
|
24 |
|
|
target="_blank">Manage your roles</a> {{" "}}
|
25 |
|
|
<a *ngIf="user && isUserManager()" class="uk-button uk-button-primary"
|
26 |
|
|
href="https://aai.openaire.eu/roles/admin.php"
|
27 |
|
|
target="_blank">Manage role requests</a>{{" "}}
|
28 |
|
|
<a *ngIf="user && isUserManager()" class="uk-button uk-button-primary"
|
29 |
|
|
href="https://aai.openaire.eu/registry"
|
30 |
|
|
target="_blank">Manage users</a>
|
31 |
|
|
</div>
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
<!-- <button (click)="logout()" class=" uk-button uk-button-default">Log out</button> -->
|
35 |
|
|
</div>
|
36 |
|
|
<!--form *ngIf="!loggedIn" class=" ">
|
37 |
|
|
|
38 |
|
|
<h3>Welcome to OpenAIRE's Discover Portal</h3>
|
39 |
|
|
|
40 |
|
|
<p>This service uses the same ldap sign-in as the OpenAIRE services so you can use the same
|
41 |
|
|
credentials.</p>
|
42 |
|
|
|
43 |
|
|
<p>Login in. To see it in action.</p>
|
44 |
|
|
<div class="uk-margin">
|
45 |
|
|
<input class="uk-input uk-form-width-medium" placeholder="Username" type="text" name="username" [(ngModel)]="username">
|
46 |
|
|
</div>
|
47 |
|
|
|
48 |
|
|
<div class="uk-margin">
|
49 |
|
|
<input placeholder="Password" class="uk-input uk-form-width-medium" type="password" name="password" [(ngModel)]="password">
|
50 |
|
|
</div>
|
51 |
|
|
<div class="uk-margin">
|
52 |
|
|
<button (click)="login()" class=" uk-button uk-button-primary">Login</button>
|
53 |
|
|
</div>
|
54 |
|
|
</form-->
|
55 |
|
|
<div *ngIf="errorCode == '1'" class="uk-alert uk-alert-warning">
|
56 |
|
|
The requested page requires authentication.
|
57 |
|
|
<span *ngIf="!loggedIn">Please <a class="uk-link" (click)="logIn()"> sign in</a> to continue.
|
58 |
|
|
</span>
|
59 |
|
|
</div>
|
60 |
|
|
<div *ngIf="errorCode == '2' || errorCode == '4' || errorCode == '8'" class="uk-alert uk-alert-warning">
|
61 |
|
|
You are not authorized to use the requested page.
|
62 |
|
|
</div>
|
63 |
|
|
<div *ngIf="errorCode == '3'" class="uk-alert uk-alert-warning">
|
64 |
|
|
The session has expired. Please <a class="" (click)="logIn()">sign in</a> again or continue <a class=""
|
65 |
|
|
(click)="redirect();">browsing
|
66 |
|
|
as a guest</a>.
|
67 |
|
|
</div>
|
68 |
|
|
<div *ngIf="errorCode == '5'" class="uk-alert uk-alert-warning">
|
69 |
|
|
There is no research community selected.
|
70 |
|
|
</div>
|
71 |
|
|
|
72 |
|
|
<div *ngIf="!loggedIn && errorMessage.length > 0" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
</div>
|
76 |
|
|
</div>
|
77 |
|
|
</div>
|
78 |
|
|
</div>
|
79 |
|
|
</div>
|