2019-05-10 13:12:45 +02:00
|
|
|
<nav class="navbar navbar-expand-lg fixed-navbar">
|
2019-04-25 11:03:22 +02:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-wrapper">
|
2019-05-16 18:11:41 +02:00
|
|
|
<app-breadcrumb></app-breadcrumb>
|
|
|
|
<!-- <a routerLink="/home">
|
2019-04-25 11:03:22 +02:00
|
|
|
<i class="material-icons">dashboard</i>
|
|
|
|
</a>
|
2019-05-16 18:11:41 +02:00
|
|
|
<a class="navbar-brand" routerLink="/home">{{ 'NAV-BAR.BREADCRUMB-ROOT' | translate }}</a> -->
|
2019-04-25 11:03:22 +02:00
|
|
|
</div>
|
2019-04-30 16:14:24 +02:00
|
|
|
<button class="navbar-toggler" type="button" (click)="sidebarToggle()">
|
2019-04-25 11:03:22 +02:00
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="navbar-toggler-icon icon-bar"></span>
|
|
|
|
<span class="navbar-toggler-icon icon-bar"></span>
|
|
|
|
<span class="navbar-toggler-icon icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse justify-content-end" id="navigation">
|
2019-04-24 11:26:53 +02:00
|
|
|
|
2019-04-25 11:03:22 +02:00
|
|
|
<!-- <form class="navbar-form">
|
2019-04-24 11:26:53 +02:00
|
|
|
<div class="input-group input-search">
|
|
|
|
<input type="text" value="" class="form-control" placeholder="SEARCH...">
|
|
|
|
<button type="submit" class="btn btn-link"><i class="material-icons">search</i></button>
|
|
|
|
</div>
|
|
|
|
</form> -->
|
|
|
|
|
2020-01-23 17:35:11 +01:00
|
|
|
<!-- Language
|
|
|
|
|
|
|
|
<div class="col-auto">
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="languageMenu">
|
|
|
|
<mat-icon>language</mat-icon>
|
|
|
|
</button>
|
|
|
|
<mat-menu #languageMenu="matMenu">
|
|
|
|
<button mat-menu-item
|
|
|
|
(click)="onLanguageSelected(languageTypes.English)">{{'NAVIGATION.ENGLISH-LANGUAGE' | translate}}</button>
|
|
|
|
<button mat-menu-item
|
|
|
|
(click)="onLanguageSelected(languageTypes.Greek)">{{'NAVIGATION.GREEK-LANGUAGE' | translate}}</button>
|
|
|
|
</mat-menu>
|
|
|
|
</div> -->
|
|
|
|
|
2020-01-28 17:31:21 +01:00
|
|
|
<div class="col-md-auto" *ngIf="!(isAuthenticated() && onInvalidUrl())">
|
2020-02-18 12:14:19 +01:00
|
|
|
<button mat-icon-button [matMenuTriggerFor]="languageMenu" [matTooltip]="this.getCurrentLanguage().label | translate">
|
2020-01-23 17:35:11 +01:00
|
|
|
<mat-icon>language</mat-icon>
|
|
|
|
</button>
|
2020-02-18 12:34:17 +01:00
|
|
|
<mat-menu #languageMenu="matMenu" class="lang-parent">
|
2020-02-18 15:47:58 +01:00
|
|
|
<app-language></app-language>
|
2020-01-23 17:35:11 +01:00
|
|
|
</mat-menu>
|
|
|
|
</div>
|
|
|
|
|
2019-04-24 11:26:53 +02:00
|
|
|
<app-search></app-search>
|
|
|
|
|
2019-04-25 11:03:22 +02:00
|
|
|
<ul class="navbar-nav">
|
2019-04-24 11:26:53 +02:00
|
|
|
<!-- Notifications -->
|
2019-04-25 11:03:22 +02:00
|
|
|
<!-- <li class="nav-item dropdown">
|
2019-04-24 11:26:53 +02:00
|
|
|
<a class="nav-link" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<i class="material-icons md-32">notifications</i>
|
|
|
|
<span class="notification">3</span>
|
|
|
|
<p>
|
|
|
|
<span class="d-lg-none d-md-block">Some Actions</span>
|
|
|
|
</p>
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownMenuLink">
|
|
|
|
<a class="dropdown-item" href="#">Mike John responded to your email</a>
|
|
|
|
<a class="dropdown-item" href="#">You have 5 new tasks</a>
|
|
|
|
<a class="dropdown-item" href="#">You're now friend with Andrew</a>
|
|
|
|
<a class="dropdown-item" href="#">Another Notification</a>
|
|
|
|
<a class="dropdown-item" href="#">Another One</a>
|
|
|
|
</div>
|
|
|
|
</li> -->
|
|
|
|
|
2019-04-25 11:03:22 +02:00
|
|
|
<!-- Admin -->
|
|
|
|
<!-- <a *ngIf="isAdmin()" mat-button class="buttonNav navbar-button"
|
|
|
|
routerLink="/users">{{'NAV-BAR.USERS' | translate}}</a>
|
|
|
|
<a *ngIf="isAdmin()" mat-button class="buttonNav navbar-button" routerLink="/dmp-profiles">{{'NAV-BAR.DMP-PROFILES' |
|
|
|
|
translate}}</a>
|
|
|
|
<a *ngIf="isAdmin()" mat-button class="buttonNav navbar-button" routerLink="/dataset-profiles">{{'NAV-BAR.DATASETS-ADMIN'
|
|
|
|
| translate}}</a> -->
|
|
|
|
|
2019-04-30 16:14:24 +02:00
|
|
|
|
|
|
|
<!-- Login -->
|
2019-04-25 11:03:22 +02:00
|
|
|
<li class="nav-item" *ngIf="isAuthenticated();else loginoption">
|
2020-02-18 12:14:19 +01:00
|
|
|
<img mat-card-avatar class="my-mat-card-avatar" [src]="this.getPrincipalAvatar()" (error)="this.applyFallbackAvatar($event)" (click)="openProfile()" [matTooltip]="this.getPrincipalName()">
|
2020-02-17 16:39:33 +01:00
|
|
|
<!-- <img mat-card-avatar class="my-mat-card-avatar" *ngIf="!this.principalHasAvatar()" [src]="this.getDefaultAvatar()" (click)="openProfile()"> -->
|
2019-04-24 11:26:53 +02:00
|
|
|
</li>
|
|
|
|
<ng-template #loginoption>
|
|
|
|
<button mat-button [routerLink]=" ['/login'] ">
|
2019-04-25 11:03:22 +02:00
|
|
|
<span class="login-label">{{ 'GENERAL.ACTIONS.LOG-IN' | translate }}</span>
|
2019-04-24 11:26:53 +02:00
|
|
|
</button>
|
|
|
|
</ng-template>
|
|
|
|
|
2019-04-25 11:03:22 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-04-24 11:26:53 +02:00
|
|
|
</nav>
|
2019-04-30 17:59:19 +02:00
|
|
|
<div *ngIf="progressIndication" class="progress-bar">
|
|
|
|
<mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>
|
|
|
|
</div>
|