2020-11-16 14:36:12 +01:00
|
|
|
<div>
|
2021-03-17 10:21:37 +01:00
|
|
|
<div [id]="(mainComponent)?'tm-main':''" [class]="(mainComponent)?'uk-section tm-middle':''">
|
|
|
|
<div *ngIf="loading" class="uk-flex uk-flex-center">
|
|
|
|
<loading></loading>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="!loading" class="uk-grid" uk-grid>
|
2020-11-16 14:36:12 +01:00
|
|
|
<div class="tm-main uk-width-1-1@s uk-width-1-1@m uk-width-1-1@l uk-row-first ">
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<div *ngIf="!server" class="uk-container uk-container-small uk-position-relative">
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<div *ngIf="loggedIn && !errorCode" class="">
|
|
|
|
<div class="uk-h2 uk-text-center">User Information</div>
|
|
|
|
<div>
|
|
|
|
<span class="uk-text-muted"> Full name </span> <span> {{user.fullname}} </span>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span class="uk-text-muted"> E-mail </span> <span> {{user.email}} </span>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="user.role.length > 1">
|
|
|
|
<span class="uk-text-muted"> Roles </span> <span> {{getTheRolesFormatted(user.role)}} </span>
|
|
|
|
</div>
|
|
|
|
<div class="uk-margin-top " *ngIf="user.role.length > 1">
|
|
|
|
<a class="uk-button uk-button-primary" href="https://aai.openaire.eu/roles/index.php"
|
|
|
|
target="_blank">Manage your roles</a> {{" "}}
|
|
|
|
<a *ngIf="user && isUserManager()" class="uk-button uk-button-primary"
|
|
|
|
href="https://aai.openaire.eu/roles/admin.php"
|
|
|
|
target="_blank">Manage role requests</a>{{" "}}
|
|
|
|
<a *ngIf="user && isUserManager()" class="uk-button uk-button-primary"
|
|
|
|
href="https://aai.openaire.eu/registry"
|
|
|
|
target="_blank">Manage users</a>
|
|
|
|
</div>
|
2017-12-19 13:53:46 +01:00
|
|
|
|
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<!-- <button (click)="logout()" class=" uk-button uk-button-default">Log out</button> -->
|
|
|
|
</div>
|
|
|
|
<!--form *ngIf="!loggedIn" class=" ">
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<h3>Welcome to OpenAIRE's Discover Portal</h3>
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<p>This service uses the same ldap sign-in as the OpenAIRE services so you can use the same
|
|
|
|
credentials.</p>
|
2019-06-12 13:50:48 +02:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<p>Login in. To see it in action.</p>
|
|
|
|
<div class="uk-margin">
|
|
|
|
<input class="uk-input uk-form-width-medium" placeholder="Username" type="text" name="username" [(ngModel)]="username">
|
|
|
|
</div>
|
2019-06-12 13:50:48 +02:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<div class="uk-margin">
|
|
|
|
<input placeholder="Password" class="uk-input uk-form-width-medium" type="password" name="password" [(ngModel)]="password">
|
|
|
|
</div>
|
|
|
|
<div class="uk-margin">
|
|
|
|
<button (click)="login()" class=" uk-button uk-button-primary">Login</button>
|
|
|
|
</div>
|
|
|
|
</form-->
|
|
|
|
<div *ngIf="errorCode == '1'" class="uk-alert uk-alert-warning">
|
|
|
|
The requested page requires authentication.
|
2021-07-14 13:19:57 +02:00
|
|
|
<span *ngIf="!loggedIn">Please <a class="uk-link" (click)="logIn()"> sign in</a> to continue.
|
|
|
|
</span>
|
2020-11-16 14:36:12 +01:00
|
|
|
</div>
|
|
|
|
<div *ngIf="errorCode == '2' || errorCode == '4' || errorCode == '8'" class="uk-alert uk-alert-warning">
|
|
|
|
You are not authorized to use the requested page.
|
|
|
|
</div>
|
|
|
|
<div *ngIf="errorCode == '3'" class="uk-alert uk-alert-warning">
|
|
|
|
The session has expired. Please <a class="" (click)="logIn()">sign in</a> again or continue <a class=""
|
|
|
|
(click)="redirect();">browsing
|
|
|
|
as a guest</a>.
|
|
|
|
</div>
|
|
|
|
<div *ngIf="errorCode == '5'" class="uk-alert uk-alert-warning">
|
|
|
|
There is no research community selected.
|
|
|
|
</div>
|
2019-04-15 16:08:08 +02:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
<div *ngIf="!loggedIn && errorMessage.length > 0" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
|
2017-12-19 13:53:46 +01:00
|
|
|
|
2018-02-16 11:24:00 +01:00
|
|
|
|
2020-11-16 14:36:12 +01:00
|
|
|
</div>
|
2019-06-12 13:50:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|