2018-03-16 09:56:42 +01:00
|
|
|
<div *ngIf="showMenu">
|
2022-03-03 16:44:59 +01:00
|
|
|
<div class="uk-hidden@m">
|
|
|
|
<div [ngClass]="portal + '-menu'">
|
|
|
|
<nav class="uk-navbar-container uk-navbar" uk-navbar="">
|
2022-03-09 22:38:05 +01:00
|
|
|
<div
|
|
|
|
*ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge">
|
|
|
|
<img class="uk-position-top-left"
|
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
2022-03-03 17:19:06 +01:00
|
|
|
alt="BETA" style="height: 60px; width: 60px;">
|
|
|
|
</div>
|
2022-03-03 16:44:59 +01:00
|
|
|
<div *ngIf="!onlyTop || userMenu" class="uk-navbar-left">
|
|
|
|
<a *ngIf="!offCanvasFlip" class="uk-navbar-toggle" href="#tm-mobile" uk-toggle="" style="z-index:1000;">
|
|
|
|
<div uk-navbar-toggle-icon="" class="uk-navbar-toggle-icon uk-icon custom-navbar-toggle-icon"></div>
|
|
|
|
<span class="visually-hidden">toggle menu</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="uk-navbar-center">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: true}"></ng-container>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="!onlyTop || userMenu" class="uk-navbar-right">
|
|
|
|
<a *ngIf="offCanvasFlip" class="uk-navbar-toggle" href="#tm-mobile" uk-toggle="" style="z-index:1000;">
|
|
|
|
<div uk-navbar-toggle-icon="" class="uk-navbar-toggle-icon uk-icon custom-navbar-toggle-icon"></div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
<div #canvas id="tm-mobile" [attr.uk-offcanvas]="(offCanvasFlip?'flip:'+(offCanvasFlip + ';'):'') + 'overlay: true'"
|
|
|
|
class="uk-offcanvas uk-hidden@m"
|
|
|
|
style="z-index:9999;">
|
|
|
|
<div class="uk-offcanvas-bar">
|
|
|
|
<button class="uk-offcanvas-close uk-close uk-icon" type="button" uk-close=""></button>
|
|
|
|
<div class="uk-padding">
|
|
|
|
<ul class="uk-nav uk-nav-default">
|
|
|
|
<ng-container *ngIf="!onlyTop">
|
|
|
|
<ng-container *ngFor="let menu of menuItems">
|
|
|
|
<li *ngIf="showHomeMenuItem && currentRoute.route !== '/'">
|
2022-03-04 16:31:09 +01:00
|
|
|
<a routerLink="/" (click)="closeCanvas(canvas)">Home</a>
|
2022-03-03 16:44:59 +01:00
|
|
|
</li>
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(menu)"
|
|
|
|
*ngIf="isAtleastOneEnabled(menu.rootItem.entitiesRequired,showEntity) && isAtleastOneEnabled(menu.rootItem.routeRequired, showPage)">
|
2022-03-04 16:31:09 +01:00
|
|
|
<!--a routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="uk-offcanvas-close custom-offcanvas-close">{{menu.rootItem.title}}</a-->
|
2022-03-03 16:44:59 +01:00
|
|
|
<a *ngIf="menu.rootItem.route.length > 0 && (isEnabled([menu.rootItem.route], showPage) || !menu.rootItem.routeRequired)"
|
2022-03-04 16:31:09 +01:00
|
|
|
routerLink="{{menu.rootItem.route}}" (click)="closeCanvas(canvas)"
|
2022-03-09 22:38:05 +01:00
|
|
|
[queryParams]="menu.rootItem.params"
|
|
|
|
[fragment]="menu.rootItem.fragment">{{menu.rootItem.title}}</a>
|
2022-03-03 16:44:59 +01:00
|
|
|
<a *ngIf="menu.rootItem.route.length == 0 && menu.rootItem.url.length > 0"
|
2022-03-04 16:31:09 +01:00
|
|
|
href="{{menu.rootItem.url}}" (click)="closeCanvas(canvas)"
|
2022-03-03 16:44:59 +01:00
|
|
|
target="{{menu.rootItem.url.includes('http') ? '_blank' : '_self'}}">{{menu.rootItem.title}}</a>
|
|
|
|
<a *ngIf="(menu.rootItem.route.length == 0 && menu.rootItem.url.length == 0) ||
|
2022-02-28 13:38:26 +01:00
|
|
|
(menu.rootItem.route.length >0 && menu.rootItem.routeRequired && !isEnabled([menu.rootItem.route], showPage)
|
2022-03-09 22:38:05 +01:00
|
|
|
&& isAtleastOneEnabled(menu.rootItem.routeRequired, showPage))"
|
|
|
|
(click)="closeCanvas(canvas)">{{menu.rootItem.title}}</a>
|
2022-03-03 16:44:59 +01:00
|
|
|
<ul class="uk-nav-sub">
|
|
|
|
<ng-container *ngFor="let submenu of menu.items">
|
|
|
|
<li [class.uk-active]="isTheActiveMenuItem(submenu)"
|
|
|
|
*ngIf="isEnabled(submenu.entitiesRequired,showEntity) && isEnabled(submenu.routeRequired, showPage) && (submenu.route.length > 0 || submenu.url.length > 0)"
|
|
|
|
[class.uk-parent]="submenu.items && submenu.items.length > 0">
|
2022-03-04 16:31:09 +01:00
|
|
|
<a *ngIf="submenu.route.length > 0" (click)="closeCanvas(canvas)"
|
2022-03-03 16:44:59 +01:00
|
|
|
routerLink="{{submenu.route}}" [queryParams]=submenu.params
|
|
|
|
[fragment]="submenu.fragment">{{submenu.title}}</a>
|
2022-03-04 16:31:09 +01:00
|
|
|
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0"
|
2022-03-03 16:44:59 +01:00
|
|
|
href="{{submenu.url}}" (click)="closeCanvas(canvas)"
|
|
|
|
target="{{submenu.url.includes('http') ? '_blank' : '_self'}}">{{submenu.title}}</a>
|
|
|
|
<ul *ngIf="submenu.items && submenu.items.length > 0" class="uk-nav-sub">
|
|
|
|
<ng-container *ngFor="let subsubmenu of submenu.items">
|
|
|
|
<li>
|
2022-03-04 16:31:09 +01:00
|
|
|
<a *ngIf="subsubmenu.route.length > 0"
|
2022-03-03 16:44:59 +01:00
|
|
|
routerLink="{{subsubmenu.route}}" [queryParams]="subsubmenu.params"
|
|
|
|
[fragment]="subsubmenu.fragment" (click)="closeCanvas(canvas)">{{subsubmenu.title}}</a>
|
|
|
|
<a *ngIf="subsubmenu.route.length == 0 && subsubmenu.url.length > 0"
|
2022-03-04 16:31:09 +01:00
|
|
|
href="{{subsubmenu.url}}" (click)="closeCanvas(canvas)"
|
2022-03-03 16:44:59 +01:00
|
|
|
target="_blank">{{subsubmenu.title}}</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li *ngIf="submenu.route.length == 0 && submenu.url.length == 0 && isEnabled(submenu.entitiesRequired,showEntity) && isEnabled(submenu.routeRequired, showPage)"
|
|
|
|
class="uk-nav-header">{{submenu.title}}</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
2022-02-28 13:38:26 +01:00
|
|
|
</ng-container>
|
2022-03-03 16:44:59 +01:00
|
|
|
</ul>
|
|
|
|
<ng-container *ngIf="userMenu">
|
|
|
|
<user-mini [user]="user" mobileView=true (closeCanvasEmitter)="closeCanvas(canvas)"
|
|
|
|
[userMenuItems]=userMenuItems [logInUrl]=properties.loginUrl
|
|
|
|
[logOutUrl]=properties.logoutUrl [cookieDomain]=properties.cookieDomain></user-mini>
|
2022-03-03 17:19:06 +01:00
|
|
|
<ng-content select="[extra-s]"></ng-content>
|
2022-02-28 13:38:26 +01:00
|
|
|
</ng-container>
|
2022-03-03 16:44:59 +01:00
|
|
|
</div>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2021-04-07 16:54:23 +02:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
<div class="uk-visible@m">
|
2022-03-03 16:44:59 +01:00
|
|
|
<div class="uk-navbar-transparent" [ngClass]="portal + '-menu'"
|
2022-03-09 22:38:05 +01:00
|
|
|
uk-sticky="show-on-up: true" media="@m" cls-active="uk-active uk-navbar-sticky"
|
|
|
|
cls-inactive="uk-navbar-transparent"
|
2022-03-03 16:44:59 +01:00
|
|
|
[attr.animation]="(header.stickyAnimation?'uk-animation-slide-top':null)">
|
2022-03-09 22:38:05 +01:00
|
|
|
<div
|
|
|
|
*ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge">
|
|
|
|
<img class="uk-position-top-left"
|
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
2022-03-03 16:44:59 +01:00
|
|
|
alt="BETA" style="height: 100px; width: 100px; z-index: 1000">
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-03-03 13:35:55 +01:00
|
|
|
<nav class="uk-navbar uk-flex uk-navbar-container uk-padding-large uk-padding-remove-vertical" uk-navbar>
|
2022-02-28 13:38:26 +01:00
|
|
|
<ng-container *ngIf="!onlyTop">
|
2022-02-28 17:00:57 +01:00
|
|
|
<div class="uk-navbar-left">
|
|
|
|
<ng-container *ngIf="showLogo && isHeaderLeft">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
|
|
|
</ng-container>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
<div class="uk-navbar-center">
|
2022-02-28 17:00:57 +01:00
|
|
|
<ng-container *ngIf="showLogo && !isHeaderLeft">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
|
|
|
</ng-container>
|
2022-03-09 22:38:05 +01:00
|
|
|
<ng-container *ngIf="!header.menuPosition || header.menuPosition === 'center'">
|
2022-02-28 13:38:26 +01:00
|
|
|
<ng-container *ngTemplateOutlet="mainMenu"></ng-container>
|
|
|
|
</ng-container>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
<div class="uk-navbar-right">
|
|
|
|
<ng-container *ngIf="header.menuPosition === 'right'">
|
|
|
|
<ng-container *ngTemplateOutlet="mainMenu"></ng-container>
|
|
|
|
</ng-container>
|
|
|
|
<user-mini *ngIf="userMenu" [user]="user" [dark]="dark"
|
|
|
|
[userMenuItems]=userMenuItems [logInUrl]=properties.loginUrl [logOutUrl]=properties.logoutUrl
|
|
|
|
[cookieDomain]=properties.cookieDomain></user-mini>
|
2022-03-03 17:19:06 +01:00
|
|
|
<ng-content select="[extra-m]"></ng-content>
|
2020-10-06 10:12:14 +02:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
<ng-template #mainMenu>
|
|
|
|
<ul class="uk-navbar-nav" [class.uk-margin-right]="!userMenu">
|
2021-04-12 17:35:49 +02:00
|
|
|
<li class="uk-parent" *ngIf="showHomeMenuItem && currentRoute.route !== '/'">
|
2022-03-04 16:31:09 +01:00
|
|
|
<a routerLink="/">Home</a>
|
2020-06-29 15:15:52 +02:00
|
|
|
</li>
|
|
|
|
<ng-container *ngFor="let menu of menuItems">
|
2021-04-12 17:33:39 +02:00
|
|
|
<li class="uk-parent" [class.uk-active]="isTheActiveMenu(menu)"
|
2020-06-29 15:15:52 +02:00
|
|
|
*ngIf="isAtleastOneEnabled(menu.rootItem.entitiesRequired,showEntity) && isAtleastOneEnabled(menu.rootItem.routeRequired, showPage)">
|
2022-03-04 16:31:09 +01:00
|
|
|
<!--a routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="" aria-expanded="false">{{menu.rootItem.title}}</a-->
|
2020-06-29 15:15:52 +02:00
|
|
|
<a *ngIf="menu.rootItem.route.length > 0 && (isEnabled([menu.rootItem.route], showPage) || !menu.rootItem.routeRequired )"
|
2022-03-04 16:31:09 +01:00
|
|
|
routerLink="{{menu.rootItem.route}}"
|
2021-04-07 16:54:23 +02:00
|
|
|
[queryParams]="menu.rootItem.params"
|
|
|
|
[fragment]="menu.rootItem.fragment"> {{menu.rootItem.title}}</a>
|
2022-02-28 13:38:26 +01:00
|
|
|
<a *ngIf="menu.rootItem.route.length == 0 && menu.rootItem.url.length > 0"
|
|
|
|
href="{{menu.rootItem.url}}" target="{{menu.rootItem.url.includes('http') ? '_blank' : '_self'}}"
|
|
|
|
aria-expanded="false">{{menu.rootItem.title}}</a>
|
2022-03-09 22:38:05 +01:00
|
|
|
<a *ngIf="(menu.rootItem.route.length == 0 && menu.rootItem.url.length == 0) || ( menu.rootItem.route.length >0 && menu.rootItem.routeRequired && !isEnabled([menu.rootItem.route], showPage) && isAtleastOneEnabled(menu.rootItem.routeRequired, showPage))">{{menu.rootItem.title}}</a>
|
|
|
|
<div *ngIf="menu.items.length > 0" class="uk-navbar-dropdown" uk-drop="pos: bottom-left">
|
|
|
|
<div class="uk-height-max-medium uk-overflow-auto">
|
|
|
|
<ul class="uk-nav uk-navbar-dropdown-nav">
|
|
|
|
<ng-container *ngFor="let submenu of menu.items">
|
|
|
|
<li *ngIf="isEnabled(submenu.entitiesRequired,showEntity) &&
|
2021-01-11 14:54:07 +01:00
|
|
|
isEnabled(submenu.routeRequired, showPage) && (submenu.route.length > 0 ||
|
2021-08-09 14:31:19 +02:00
|
|
|
submenu.url.length > 0)" [class.uk-active]="isTheActiveMenuItem(submenu)"
|
2022-03-09 22:38:05 +01:00
|
|
|
[class.uk-parent]="submenu.items && submenu.items.length > 0">
|
|
|
|
<a *ngIf="submenu.route.length > 0"
|
|
|
|
routerLink="{{submenu.route}}" [queryParams]="submenu.params"
|
|
|
|
[fragment]="submenu.fragment">{{submenu.title}}</a>
|
|
|
|
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0"
|
|
|
|
href="{{submenu.url}}"
|
|
|
|
target="{{submenu.url.includes('http') ? '_blank' : '_self'}}">{{submenu.title}}</a>
|
|
|
|
<ul *ngIf="submenu.items && submenu.items.length > 0" class="uk-nav-sub">
|
|
|
|
<ng-container *ngFor="let subsubmenu of submenu.items">
|
|
|
|
<li>
|
|
|
|
<a *ngIf="subsubmenu.route.length > 0"
|
|
|
|
routerLink="{{subsubmenu.route}}" [queryParams]="subsubmenu.params"
|
|
|
|
[fragment]="subsubmenu.fragment">{{subsubmenu.title}}</a>
|
|
|
|
<a *ngIf="subsubmenu.route.length == 0 && subsubmenu.url.length > 0"
|
|
|
|
href="{{subsubmenu.url}}" target="_blank">{{subsubmenu.title}}</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
2021-08-09 14:31:19 +02:00
|
|
|
|
2022-03-09 22:38:05 +01:00
|
|
|
<li *ngIf="submenu.route.length == 0 && submenu.url.length == 0 && isEnabled(submenu.entitiesRequired,showEntity) && isEnabled(submenu.routeRequired, showPage)"
|
|
|
|
class="uk-nav-header">{{submenu.title}}</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
2022-02-28 13:38:26 +01:00
|
|
|
<!-- Custom menu items -->
|
2022-03-03 13:35:55 +01:00
|
|
|
<!-- TODO: Add to mobile menu as well! -->
|
|
|
|
<ng-container *ngIf="additionalMenuItems?.length > 0 && properties.environment == 'development'">
|
|
|
|
<ng-container *ngFor="let menu of additionalMenuItems">
|
2022-02-28 13:38:26 +01:00
|
|
|
<li class="uk-parent">
|
|
|
|
<!-- INTERNAL ROOT-->
|
2022-03-04 16:31:09 +01:00
|
|
|
<a *ngIf="menu.type == 'internal' && menu.route && isEnabled([menu.route], showPage)"
|
2022-02-28 13:38:26 +01:00
|
|
|
routerLink="{{menu.route}}"
|
|
|
|
[queryParams]="menu.params"
|
|
|
|
[fragment]="menu.fragment">
|
|
|
|
{{menu.title}}
|
|
|
|
</a>
|
|
|
|
<!-- EXTERNAL ROOT-->
|
|
|
|
<a *ngIf="menu.type == 'external' && menu.url"
|
|
|
|
href="{{menu.url}}"
|
|
|
|
target="_blank">
|
|
|
|
{{menu.title}}
|
|
|
|
</a>
|
|
|
|
<!-- NO ACTION ROOT-->
|
|
|
|
<a *ngIf="menu.type == 'noAction'">
|
|
|
|
{{menu.title}}
|
|
|
|
</a>
|
|
|
|
<div *ngIf="menu.items.length > 0" class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left"
|
|
|
|
style="top: 80px; left: 0px;" id="{{menu._id}}" uk-toggle>
|
|
|
|
<div class="uk-navbar-dropdown-grid uk-child-width-1-1 uk-grid uk-grid-stack" uk-grid="">
|
|
|
|
<div class="uk-first-column uk-height-max-medium uk-overflow-auto">
|
|
|
|
<ul class="uk-nav uk-navbar-dropdown-nav">
|
|
|
|
<ng-container *ngFor="let submenu of menu.items">
|
|
|
|
<li>
|
|
|
|
<!-- INTERNAL CHILD -->
|
2022-03-04 16:31:09 +01:00
|
|
|
<a *ngIf="submenu.type == 'internal' && submenu.route && isEnabled([submenu.route], showPage)"
|
2022-02-28 13:38:26 +01:00
|
|
|
routerLink="{{submenu.route}}"
|
|
|
|
[queryParams]="submenu.params"
|
|
|
|
[fragment]="submenu.fragment"
|
|
|
|
[class.uk-active]="isTheActiveMenuItem(submenu)">
|
|
|
|
{{submenu.title}}
|
|
|
|
</a>
|
|
|
|
<!-- EXTERNAL CHILD -->
|
2022-03-04 16:31:09 +01:00
|
|
|
<a *ngIf="submenu.type == 'external' && submenu.url"
|
2022-02-28 13:38:26 +01:00
|
|
|
href="{{submenu.url}}"
|
|
|
|
target="_blank">
|
|
|
|
{{submenu.title}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
2020-06-29 15:15:52 +02:00
|
|
|
</ul>
|
2022-02-28 13:38:26 +01:00
|
|
|
</ng-template>
|
|
|
|
</ng-container>
|
2022-03-09 22:38:05 +01:00
|
|
|
</nav>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-03-09 22:38:05 +01:00
|
|
|
<!-- New navbar for featured menu items - test only -->
|
|
|
|
<ng-container *ngIf="featuredMenuItems?.length > 0 && properties.environment == 'development'">
|
|
|
|
<div class="featuredNavBar">
|
|
|
|
<ul>
|
|
|
|
<ng-container *ngFor="let item of featuredMenuItems">
|
|
|
|
<li>
|
|
|
|
<!-- INTERNAL -->
|
|
|
|
<a *ngIf="item.type == 'internal' && item.route && isEnabled([item.route], showPage)"
|
|
|
|
routerLink="{{item.route}}"
|
|
|
|
[queryParams]="item.params"
|
|
|
|
[fragment]="item.fragment"
|
|
|
|
[class.uk-active]="isTheActiveMenuItem(item)">
|
|
|
|
{{item.title}}
|
|
|
|
</a>
|
|
|
|
<!-- EXTERNAL -->
|
|
|
|
<a *ngIf="item.type == 'external' && item.url"
|
|
|
|
href="{{item.url}}"
|
|
|
|
target="_blank">
|
|
|
|
{{item.title}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</ng-container>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2018-03-16 09:56:42 +01:00
|
|
|
</div>
|
2020-10-06 10:12:14 +02:00
|
|
|
<ng-template #header_template let-mobile="mobile">
|
2022-02-28 17:00:57 +01:00
|
|
|
<a *ngIf="!header.url" [routerLink]="header.route" [class.uk-padding-remove]="!isHeaderLeft"
|
2021-04-16 17:08:11 +02:00
|
|
|
class="uk-logo uk-navbar-item uk-text-center uk-text-bold">
|
2020-10-06 10:12:14 +02:00
|
|
|
<img *ngIf="(mobile && header.logoSmallUrl) || (!mobile && header.logoUrl)"
|
|
|
|
[src]="!mobile?header.logoUrl:header.logoSmallUrl"
|
|
|
|
[alt]="header.title"
|
2022-03-08 19:35:00 +01:00
|
|
|
class="uk-width-1-1">
|
2021-04-07 16:54:23 +02:00
|
|
|
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
2021-04-09 14:35:02 +02:00
|
|
|
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="header.title">
|
2021-11-26 09:31:50 +01:00
|
|
|
<p class="uk-margin-remove">{{header.title}}</p>
|
2021-04-09 14:35:02 +02:00
|
|
|
</div>
|
2021-04-07 16:54:23 +02:00
|
|
|
</ng-container>
|
2020-10-06 10:12:14 +02:00
|
|
|
</a>
|
2022-02-28 17:00:57 +01:00
|
|
|
<a *ngIf="header.url" [href]="header.url" [class.uk-padding-remove]="!isHeaderLeft"
|
2021-04-16 17:08:11 +02:00
|
|
|
class="uk-logo uk-navbar-item uk-text-center uk-text-bold">
|
2021-01-14 17:56:43 +01:00
|
|
|
<img *ngIf="(mobile && header.logoSmallUrl) || (!mobile && header.logoUrl)"
|
2021-04-07 16:54:23 +02:00
|
|
|
[src]="!mobile?header.logoUrl:header.logoSmallUrl"
|
|
|
|
[alt]="header.title"
|
2022-03-08 19:35:00 +01:00
|
|
|
class="uk-width-1-1">
|
2021-04-07 16:54:23 +02:00
|
|
|
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
2021-04-09 14:35:02 +02:00
|
|
|
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="header.title">
|
2021-11-26 09:31:50 +01:00
|
|
|
<p class="uk-margin-remove">{{header.title}}</p>
|
2021-04-09 14:35:02 +02:00
|
|
|
</div>
|
2021-04-07 16:54:23 +02:00
|
|
|
</ng-container>
|
2020-10-06 10:12:14 +02:00
|
|
|
</a>
|
|
|
|
</ng-template>
|