2020-06-26 11:08:51 +02:00
|
|
|
<ng-container>
|
|
|
|
<nav class="navbar navbar-expand-lg fixed-navbar">
|
2023-02-10 14:08:23 +01:00
|
|
|
<div class="container-fluid h-100">
|
2020-06-26 11:08:51 +02:00
|
|
|
|
2021-03-05 10:05:09 +01:00
|
|
|
<div class="hamburger change" id="hamburger" (click)="toggleMyNav($event)">
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="icon-bar1"></div>
|
|
|
|
<div class="icon-bar2"></div>
|
|
|
|
<div class="icon-bar3"></div>
|
|
|
|
</div>
|
2023-02-10 14:08:23 +01:00
|
|
|
<a class="logo" [routerLink]="['home']"><img class="logo-image" src="../../../assets/images/nav-logo.png"></a>
|
2020-11-06 10:00:19 +01:00
|
|
|
|
2020-11-09 10:34:24 +01:00
|
|
|
<button class="navbar-toggler ml-auto" type="button" [matMenuTriggerFor]="toggleMenu">
|
|
|
|
<img *ngIf="this.isAuthenticated();else loginoption" mat-card-avatar class="my-mat-card-avatar" [src]="this.getPrincipalAvatar()" (error)="this.applyFallbackAvatar($event)">
|
|
|
|
</button>
|
2020-11-06 10:00:19 +01:00
|
|
|
<!-- <button class="navbar-toggler ml-auto" type="button" [matMenuTriggerFor]="toggleMenu" (mouseenter)="openMyMenu()">
|
2020-07-28 17:28:12 +02:00
|
|
|
<mat-icon class="toggle-icon">view_headline</mat-icon>
|
2020-11-06 10:00:19 +01:00
|
|
|
</button> -->
|
|
|
|
|
2020-06-26 11:08:51 +02:00
|
|
|
<div class="collapse navbar-collapse justify-content-end" id="navigation">
|
|
|
|
|
2020-11-24 18:09:10 +01:00
|
|
|
<div class="new-dmp-dialog col-md-auto ml-auto">
|
|
|
|
<button type="button" class="normal-btn" (click)="openNewDmpDialog()">{{ 'NAV-BAR.START-NEW-DMP' | translate }}</button>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-auto pl-0" *ngIf="!(isAuthenticated() && onInvalidUrl())">
|
2020-06-26 17:27:01 +02:00
|
|
|
<a class="ml-4 mr-4 faq-title" (click)="openFaqDialog()"><b>{{ 'FAQ.TITLE' | translate }}</b></a>
|
2020-06-26 11:08:51 +02:00
|
|
|
<!-- <button mat-icon-button class="lang" [matMenuTriggerFor]="languageMenu"></button> -->
|
2020-07-28 17:28:12 +02:00
|
|
|
<button mat-button [matMenuTriggerFor]="languageMenu" class="p-0 lang">
|
2020-08-03 10:40:38 +02:00
|
|
|
<mat-icon class="mr-2">language</mat-icon><span class="text-uppercase">{{selectedLanguage}}</span>
|
2020-07-28 17:28:12 +02:00
|
|
|
<mat-icon>arrow_drop_down</mat-icon>
|
|
|
|
</button>
|
2020-06-26 11:08:51 +02:00
|
|
|
<mat-menu #languageMenu="matMenu" class="lang-parent">
|
|
|
|
<app-language (languageChange)="getLanguage($event)"></app-language>
|
|
|
|
</mat-menu>
|
|
|
|
</div>
|
2024-01-10 13:24:32 +01:00
|
|
|
<div class="col-auto" *ngIf="isAuthenticated() && authentication.hasPermission(authentication.permissionEnum.ViewMineInAppNotificationPage)">
|
2024-01-09 14:52:07 +01:00
|
|
|
<button class="col-auto" mat-icon-button matTooltip="{{'NAV-BAR.INAPP-NOTIFICATIONS' | translate}}" (click)="toggleInAppNotifications()">
|
|
|
|
<mat-icon [matBadge]="inAppNotificationCount" [matBadgeHidden]="inAppNotificationCount <= 0" matBadgeColor="warn">mail</mat-icon>
|
|
|
|
</button>
|
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
|
2020-06-30 18:40:01 +02:00
|
|
|
<!-- <app-search></app-search> -->
|
2020-06-26 11:08:51 +02:00
|
|
|
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<!-- Login -->
|
|
|
|
<li class="nav-item" *ngIf="isAuthenticated();else loginoption">
|
2020-08-03 10:40:38 +02:00
|
|
|
<img mat-card-avatar class="my-mat-card-avatar" [src]="this.getPrincipalAvatar()" (error)="this.applyFallbackAvatar($event)" (click)="openProfile()" [matTooltip]="this.getPrincipalName()">
|
2020-07-28 17:28:12 +02:00
|
|
|
<!--<img mat-card-avatar class="my-mat-card-avatar" *ngIf="!this.principalHasAvatar()" [src]="this.getDefaultAvatar()" (click)="openProfile()"> -->
|
2020-06-26 11:08:51 +02:00
|
|
|
</li>
|
|
|
|
<ng-template #loginoption>
|
|
|
|
<button mat-button [routerLink]=" ['/login'] ">
|
|
|
|
<span class="login-label">{{ 'GENERAL.ACTIONS.LOG-IN' | translate }}</span>
|
|
|
|
</button>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
2020-01-23 17:35:11 +01:00
|
|
|
</div>
|
2020-07-28 17:28:12 +02:00
|
|
|
|
|
|
|
<mat-menu #toggleMenu="matMenu">
|
2020-11-06 10:00:19 +01:00
|
|
|
<div *ngIf="!(isAuthenticated() && onInvalidUrl())">
|
2020-11-09 10:34:24 +01:00
|
|
|
<!-- <div *ngIf="!(isAuthenticated() && onInvalidUrl())" (mouseleave)="closeMyMenu()"> -->
|
2020-07-28 17:28:12 +02:00
|
|
|
<ul class="list m-2">
|
2020-11-06 10:00:19 +01:00
|
|
|
<!-- <li *ngIf="isAuthenticated();else loginoption" class="d-flex justify-content-center avatar"> -->
|
2020-11-09 10:34:24 +01:00
|
|
|
<!-- <img mat-card-avatar class="my-mat-card-avatar" [src]="this.getPrincipalAvatar()" (error)="this.applyFallbackAvatar($event)" (click)="openProfile()" [matTooltip]="this.getPrincipalName()"> -->
|
|
|
|
<!--<img mat-card-avatar class="my-mat-card-avatar" *ngIf="!this.principalHasAvatar()" [src]="this.getDefaultAvatar()" (click)="openProfile()"> -->
|
2020-11-06 10:00:19 +01:00
|
|
|
<!-- </li> -->
|
2020-07-28 17:28:12 +02:00
|
|
|
<ng-template #loginoption>
|
|
|
|
<li class="d-flex justify-content-center avatar">
|
|
|
|
<button mat-button [routerLink]=" ['/login'] " class="d-flex justify-content-center">
|
|
|
|
<span class="login-label">{{ 'GENERAL.ACTIONS.LOG-IN' | translate }}</span>
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
<li class="ml-3 d-flex justify-content-around align-items-center" (click)="$event.stopPropagation()">
|
|
|
|
<a class="faq-title" (click)="openFaqDialog()"><b>{{ 'FAQ.TITLE' | translate }}</b></a>
|
2020-11-06 10:00:19 +01:00
|
|
|
<button mat-button [matMenuTriggerFor]="languageMenu" class="ml-3 p-0 lang" (click)="$event.stopPropagation();">
|
2020-08-03 10:40:38 +02:00
|
|
|
<mat-icon class="mr-2">language</mat-icon><span class="text-uppercase">{{selectedLanguage}}</span>
|
2020-07-28 17:28:12 +02:00
|
|
|
<mat-icon>arrow_drop_down</mat-icon>
|
|
|
|
</button>
|
|
|
|
<mat-menu #languageMenu="matMenu" class="lang-parent">
|
|
|
|
<app-language (languageChange)="getLanguage($event)"></app-language>
|
|
|
|
</mat-menu>
|
|
|
|
</li>
|
|
|
|
<li class="d-flex justify-content-center">
|
|
|
|
<button type="button" class="normal-btn" (click)="openNewDmpDialog()">{{ 'NAV-BAR.START-NEW-DMP' | translate }}</button>
|
|
|
|
</li>
|
2020-11-09 10:34:24 +01:00
|
|
|
<li *ngIf="isAuthenticated()">
|
|
|
|
<button type="button" class="default-btn" (click)="logout()">{{ 'USER-DIALOG.LOG-OUT' | translate }}</button>
|
|
|
|
</li>
|
2020-07-28 17:28:12 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</mat-menu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-04-25 11:03:22 +02:00
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
</nav>
|
|
|
|
<div *ngIf="progressIndication" class="progress-bar">
|
|
|
|
<mat-progress-bar color="primary" mode="indeterminate"></mat-progress-bar>
|
2019-04-25 11:03:22 +02:00
|
|
|
</div>
|
2020-06-26 11:08:51 +02:00
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Admin -->
|
|
|
|
<!-- <a *ngIf="isAdmin()" mat-button class="buttonNav navbar-button"
|
|
|
|
routerLink="/users">{{'NAV-BAR.USERS' | translate}}</a>
|
2023-10-20 17:01:09 +02:00
|
|
|
<a *ngIf="isAdmin()" mat-button class="buttonNav navbar-button" routerLink="/dmp-blueprints">{{'NAV-BAR.DMP-BLUEPRINTS' |
|
2020-06-26 11:08:51 +02:00
|
|
|
translate}}</a>
|
|
|
|
<a *ngIf="isAdmin()" mat-button class="buttonNav navbar-button" routerLink="/dataset-profiles">{{'NAV-BAR.DATASETS-ADMIN'
|
2020-08-03 10:33:12 +02:00
|
|
|
| translate}}</a> -->
|