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