57 lines
2.4 KiB
HTML
57 lines
2.4 KiB
HTML
<iqser-help-mode *deny="roles.getRss"></iqser-help-mode>
|
|
|
|
<div class="top-bar">
|
|
<ng-template #menuPlaceholder>
|
|
<div class="menu-placeholder"></div>
|
|
</ng-template>
|
|
|
|
<div *allow="roles.templates.read; if: currentUser.isUser; else: menuPlaceholder" class="flex-2 visible-lg breadcrumbs-container">
|
|
<redaction-breadcrumbs></redaction-breadcrumbs>
|
|
</div>
|
|
|
|
<a [matTooltip]="'top-bar.navigation-items.back-to-dashboard' | translate" [routerLink]="['/']" class="logo">
|
|
<div [iqserHelpMode]="'home'" class="actions">
|
|
<iqser-hidden-action (action)="userPreferenceService.toggleDevFeatures()">
|
|
<iqser-logo icon="red:logo"></iqser-logo>
|
|
</iqser-hidden-action>
|
|
<div class="app-name">{{ titleService.getTitle() }}</div>
|
|
</div>
|
|
</a>
|
|
|
|
<div class="actions flex-2">
|
|
<div class="buttons">
|
|
<redaction-spotlight-search
|
|
*allow="roles.search; if: (isSearchScreen$ | async) === false && (currentUser.isUser || currentUser.isManager)"
|
|
[actions]="searchActions"
|
|
[iqserHelpMode]="'search_in_entire_application'"
|
|
[placeholder]="'search.placeholder' | translate"
|
|
></redaction-spotlight-search>
|
|
|
|
<iqser-help-button *deny="roles.getRss" [iqserHelpMode]="'help_mode'"></iqser-help-button>
|
|
|
|
<redaction-notifications [iqserHelpMode]="'open_notifications'"></redaction-notifications>
|
|
</div>
|
|
|
|
<iqser-user-button [matMenuTriggerFor]="userMenu" id="userMenu"></iqser-user-button>
|
|
|
|
<mat-menu #userMenu="matMenu" xPosition="before">
|
|
<div id="user-menu-items">
|
|
<ng-container *ngFor="let item of userMenuItems; trackBy: trackByName">
|
|
<a (click)="item.action?.()" *ngIf="item.show" [id]="item.id" [routerLink]="item.routerLink" mat-menu-item>
|
|
{{ item.name | translate }}
|
|
</a>
|
|
</ng-container>
|
|
|
|
<button (click)="userService.logout()" id="logout" mat-menu-item>
|
|
<mat-icon svgIcon="iqser:logout"></mat-icon>
|
|
<span translate="top-bar.navigation-items.my-account.children.logout"> </span>
|
|
</button>
|
|
</div>
|
|
</mat-menu>
|
|
</div>
|
|
</div>
|
|
|
|
<div *ngIf="userPreferenceService.areDevFeaturesEnabled" class="dev-mode" translate="dev-mode"></div>
|
|
|
|
<router-outlet></router-outlet>
|