2018-03-16 09:56:42 +01:00
|
|
|
<div *ngIf="showMenu">
|
2020-10-06 10:12:14 +02:00
|
|
|
<div *ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge"
|
2020-06-29 15:15:52 +02:00
|
|
|
class="uk-visible@m">
|
2020-12-01 12:16:24 +01:00
|
|
|
<a [routerLink]="header.route" [href]="header.url"><img class="large-beta-indication"
|
2021-04-07 16:54:23 +02:00
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
2021-08-09 14:31:19 +02:00
|
|
|
alt="BETA" style="height: 104px; width: 104px ">
|
2020-04-30 14:26:25 +02:00
|
|
|
</a>
|
2019-10-17 13:48:06 +02:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
<div class="tm-header-mobile uk-hidden@m">
|
2021-04-07 16:54:23 +02:00
|
|
|
<nav class="uk-navbar-container uk-navbar" uk-navbar=""
|
|
|
|
[class.uk-navbar-transparent]="header.stickyAnimation === false">
|
|
|
|
<div
|
|
|
|
*ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge"
|
|
|
|
class="uk-position-top-left">
|
2020-06-29 15:15:52 +02:00
|
|
|
<img class="small-beta-indication"
|
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
2021-08-09 14:31:19 +02:00
|
|
|
alt="BETA" style="height: 60px; width: 60px ">
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
|
|
|
<!-- class="uk-navbar-right"--> <!-- if we want to revert the menu - put it on the right -->
|
|
|
|
<div *ngIf="!onlyTop || userMenu" class="uk-navbar-left">
|
2020-10-06 10:12:14 +02:00
|
|
|
<a *ngIf="!offCanvasFlip" class="uk-navbar-toggle" href="#tm-mobile" uk-toggle="" style="z-index:1000;">
|
2020-06-29 15:15:52 +02:00
|
|
|
<div uk-navbar-toggle-icon="" class="uk-navbar-toggle-icon uk-icon custom-navbar-toggle-icon"></div>
|
2021-08-10 12:46:33 +02:00
|
|
|
<span class="visually-hidden">toggle menu</span>
|
2020-06-29 15:15:52 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2020-11-30 18:33:28 +01:00
|
|
|
<div class="uk-navbar-center">
|
2020-10-06 10:12:14 +02:00
|
|
|
<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>
|
2020-06-29 15:15:52 +02:00
|
|
|
</a>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
</nav>
|
2020-10-06 10:12:14 +02:00
|
|
|
</div>
|
|
|
|
<div *ngIf="specialAnnouncementContent" class="uk-hidden@m" [innerHTML]="specialAnnouncementContent">
|
2020-10-09 14:49:12 +02:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
<div #canvas id="tm-mobile" [attr.uk-offcanvas]="(offCanvasFlip?'flip:'+(offCanvasFlip + ';'):'') + 'overlay: true'"
|
2021-04-07 16:54:23 +02:00
|
|
|
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>
|
2022-02-28 13:38:26 +01:00
|
|
|
<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 !== '/'">
|
|
|
|
<a routerLinkActive="uk-link" routerLink="/" (click)="closeCanvas(canvas)">Home</a>
|
|
|
|
</li>
|
|
|
|
<li [class.uk-active]="isTheActiveMenu(menu)"
|
|
|
|
*ngIf="isAtleastOneEnabled(menu.rootItem.entitiesRequired,showEntity) && isAtleastOneEnabled(menu.rootItem.routeRequired, showPage)">
|
|
|
|
<!--a routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="uk-offcanvas-close custom-offcanvas-close">{{menu.rootItem.title}}</a-->
|
|
|
|
<a *ngIf="menu.rootItem.route.length > 0 && (isEnabled([menu.rootItem.route], showPage) || !menu.rootItem.routeRequired)"
|
|
|
|
routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}"
|
|
|
|
[routerLinkActiveOptions]="{exact: true}" (click)="closeCanvas(canvas)"
|
|
|
|
[queryParams]="menu.rootItem.params" [fragment]="menu.rootItem.fragment">{{menu.rootItem.title}}</a>
|
|
|
|
<a *ngIf="menu.rootItem.route.length == 0 && menu.rootItem.url.length > 0"
|
|
|
|
routerLinkActive="uk-link" href="{{menu.rootItem.url}}" (click)="closeCanvas(canvas)"
|
|
|
|
target="{{menu.rootItem.url.includes('http') ? '_blank' : '_self'}}">{{menu.rootItem.title}}</a>
|
|
|
|
<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))" (click)="closeCanvas(canvas)">{{menu.rootItem.title}}</a>
|
2021-04-07 16:54:23 +02:00
|
|
|
<ul class="uk-nav-sub">
|
2022-02-28 13:38:26 +01:00
|
|
|
<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">
|
|
|
|
<a *ngIf="submenu.route.length > 0" routerLinkActive="uk-link" (click)="closeCanvas(canvas)"
|
|
|
|
routerLink="{{submenu.route}}" [queryParams]=submenu.params
|
|
|
|
[fragment]="submenu.fragment">{{submenu.title}}</a>
|
|
|
|
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0" routerLinkActive="uk-link"
|
|
|
|
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>
|
|
|
|
<a *ngIf="subsubmenu.route.length > 0" routerLinkActive="uk-link"
|
|
|
|
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"
|
|
|
|
routerLinkActive="uk-link" href="{{subsubmenu.url}}" (click)="closeCanvas(canvas)"
|
|
|
|
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>
|
2021-04-07 16:54:23 +02:00
|
|
|
</ul>
|
2022-02-28 13:38:26 +01:00
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ng-container>
|
|
|
|
</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>
|
|
|
|
</ng-container>
|
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-01-05 16:28:20 +01:00
|
|
|
<!--<div *ngIf="(['explore','connect','monitor','provide','develop']).indexOf(portal)!=-1"
|
2020-06-29 15:15:52 +02:00
|
|
|
class="tm-toolbar custom-{{portal}}-toolbar uk-visible@m">
|
|
|
|
<div class="uk-container uk-flex uk-flex-middle uk-container-expand">
|
2017-12-19 13:53:46 +01:00
|
|
|
<div class="uk-margin-auto-left">
|
2020-06-29 15:15:52 +02:00
|
|
|
<div class="uk-grid-medium uk-child-width-auto uk-flex-middle uk-grid uk-grid-stack"
|
|
|
|
uk-grid="margin: uk-margin-small-top">
|
|
|
|
<div class="uk-first-column">
|
|
|
|
<div class="uk-panel inner" id="module-119">
|
|
|
|
<ul class="uk-subnav uk-subnav-line">
|
|
|
|
<li><a [href]="'https://'+(properties.environment =='beta'?'beta':'www')+'.openaire.eu'" target="_blank"
|
|
|
|
class="home-icon"><span class="uk-responsive-height">
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
|
enable-background="new 0 0 20 20" height="20px" id="Layer_1" version="1.1"
|
|
|
|
viewBox="0 0 48 48" width="20px" xml:space="preserve"><path id="home" clip-rule="evenodd" d="M44.715,23.711c-0.381,0.382-1,0.382-1.381,0l-8.939-8.938 c-0.064-0.051-0.119-0.106-0.17-0.171l-3.83-3.829c-0.064-0.051-0.119-0.106-0.17-0.171L24,4.377L4.667,23.711 c-0.381,0.382-1,0.382-1.381,0c-0.381-0.381-0.381-1,0-1.381L23.191,2.425c0.031-0.047,0.053-0.101,0.094-0.144 C23.482,2.085,23.742,1.994,24,2c0.258-0.006,0.518,0.084,0.715,0.281c0.043,0.042,0.062,0.096,0.096,0.144L30,7.616V4.997 c0,0,0,0,0,0c0-0.552,0.447-1,1-1h4c0.277,0,0.527,0.112,0.707,0.293C35.889,4.471,36,4.721,36,4.997v8.619l8.715,8.714 C45.096,22.711,45.096,23.33,44.715,23.711z M34,5.997h-2v3.619l2,2V5.997z M10,21.997c0.552,0,1,0.448,1,1v19c0,1.105,0.896,2,2,2 h6l0,0v-13c0-0.553,0.447-1,1-1h8c0.553,0,1,0.447,1,1v13l0,0h6c1.105,0,2-0.895,2-2v-19c0-0.552,0.447-1,1-1s1,0.448,1,1v19 c0,2.209-1.791,4-4,4H13c-2.209,0-4-1.791-4-4v-19C9,22.444,9.448,21.997,10,21.997z M27,43.996v-12h-6v12l0,0H27L27,43.996z" fill-rule="evenodd" fill="#fff"/></svg>
|
2021-08-10 12:46:33 +02:00
|
|
|
</span><span class="visually-hidden">Home</span></a></li>
|
2020-06-29 15:15:52 +02:00
|
|
|
<li [class]="(portal=='explore')?'custom-'+portal+'-li':''"><a
|
|
|
|
[href]="'https://'+(properties.environment =='beta' || properties.environment =='development'?'beta.':'')+'explore.openaire.eu'"
|
|
|
|
title="Search in OA. Link your research">Explore</a></li>
|
|
|
|
<li [class]="(portal=='provide')?'custom-'+portal+'-li':''"><a
|
|
|
|
[href]="'https://'+(properties.environment =='beta' || properties.environment =='development'?'beta.':'')+'provide.openaire.eu'"
|
|
|
|
target="_blank" title="Content Provider Dashboard">Provide</a></li>
|
|
|
|
<li [class]="(portal=='connect'||portal=='connect-admin')?'custom-'+portal+'-li':''"><a
|
|
|
|
[href]="'https://'+(properties.environment =='beta' || properties.environment =='development' ?'beta.':'')+'connect.openaire.eu'"
|
|
|
|
target="_blank" title="Research Community Dashboard">Connect</a></li>
|
|
|
|
<li [class]="(portal=='monitor')?'custom-'+portal+'-li':''"><a
|
|
|
|
[href]="'https://'+(properties.environment =='beta' || properties.environment =='development'?'beta.':'')+'monitor.openaire.eu'"
|
|
|
|
target="_blank" title="Monitoring Dashboard">Monitor</a></li>
|
|
|
|
<li [class]="(portal=='develop')?'custom-'+portal+'-li':''"><a href="https://develop.openaire.eu"
|
|
|
|
target="_blank" title="APIs">Develop</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-19 13:53:46 +01:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-01-05 16:28:20 +01:00
|
|
|
</div>-->
|
2022-02-28 13:38:26 +01:00
|
|
|
<div *ngIf="specialAnnouncementContent" class="uk-visible@m" [innerHTML]="specialAnnouncementContent"></div>
|
|
|
|
<div class="uk-visible@m">
|
|
|
|
<div [class]="'uk-sticky uk-navbar-transparent '+portal+'-menu'"
|
|
|
|
uk-sticky="show-on-up: true" media="768" cls-active="uk-active uk-navbar-sticky"
|
2020-10-30 15:01:44 +01:00
|
|
|
[attr.animation]="(header.stickyAnimation != false ?'uk-animation-slide-top':null)"
|
2020-06-29 15:15:52 +02:00
|
|
|
top=".tm-header + [class*="uk-section"]" cls-inactive="uk-navbar-transparent" style="">
|
2021-04-07 16:54:23 +02:00
|
|
|
<div
|
|
|
|
*ngIf="(properties.environment =='beta' || properties.environment =='development') && showLogo && header.badge">
|
2020-06-29 15:15:52 +02:00
|
|
|
<img class="beta-indication-sticky"
|
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
2021-08-09 14:31:19 +02:00
|
|
|
alt="BETA" style="height: 102px; width: 102px">
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
<nav class="uk-navbar uk-navbar-container" uk-navbar>
|
|
|
|
<div *ngIf="showLogo && header.position== 'left'" class="uk-navbar-left uk-visible@l">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="showLogo && header.position == 'left'" class="uk-navbar-left uk-visible@m uk-hidden@l">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="showLogo && header.position == 'center' && header.menuPosition != 'center' "
|
|
|
|
class="uk-margin-auto uk-visible@m">
|
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
|
|
|
</div>
|
|
|
|
<!-- <div *ngIf="!onlyTop" class="uk-navbar-center"> -->
|
|
|
|
<ng-container *ngIf="!onlyTop">
|
|
|
|
<div *ngIf="showLogo && header.position == 'center' && header.menuPosition == 'center' "
|
|
|
|
class="uk-margin-large-right uk-visible@m">
|
2020-10-06 10:12:14 +02:00
|
|
|
<ng-container *ngTemplateOutlet="header_template; context: {mobile: false}"></ng-container>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
2022-02-28 13:38:26 +01:00
|
|
|
<div class="uk-navbar-center">
|
|
|
|
<ng-container *ngIf="header.menuPosition === 'center'">
|
|
|
|
<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>
|
|
|
|
<ng-content select="[after-login]"></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 !== '/'">
|
2020-06-29 15:15:52 +02:00
|
|
|
<a routerLinkActive="uk-link" routerLink="/">Home</a>
|
|
|
|
</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)">
|
|
|
|
<!--a routerLinkActive="uk-link" routerLink="{{menu.rootItem.route}}" [queryParams]=menu.rootItem.params class="" aria-expanded="false">{{menu.rootItem.title}}</a-->
|
|
|
|
<a *ngIf="menu.rootItem.route.length > 0 && (isEnabled([menu.rootItem.route], showPage) || !menu.rootItem.routeRequired )"
|
|
|
|
routerLinkActive="uk-link" 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"
|
|
|
|
routerLinkActive="uk-link"
|
|
|
|
href="{{menu.rootItem.url}}" target="{{menu.rootItem.url.includes('http') ? '_blank' : '_self'}}"
|
|
|
|
aria-expanded="false">{{menu.rootItem.title}}</a>
|
2020-06-29 15:15:52 +02: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)) "
|
|
|
|
class="uk-offcanvas-close custom-offcanvas-close">{{menu.rootItem.title}}</a>
|
|
|
|
<div *ngIf="menu.items.length > 0" class="uk-navbar-dropdown uk-navbar-dropdown-bottom-left"
|
2022-02-28 13:38:26 +01:00
|
|
|
style="top: 80px; left: 0px;" id="{{menu.rootItem._id}}" uk-toggle>
|
2020-06-29 15:15:52 +02:00
|
|
|
<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">
|
2021-01-11 14:54:07 +01:00
|
|
|
<li *ngIf="isEnabled(submenu.entitiesRequired,showEntity) &&
|
|
|
|
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)"
|
|
|
|
[class.uk-parent]="submenu.items && submenu.items.length > 0">
|
2020-06-29 15:15:52 +02:00
|
|
|
<a *ngIf="submenu.route.length > 0" routerLinkActive="uk-link"
|
2021-04-07 16:54:23 +02:00
|
|
|
routerLink="{{submenu.route}}" [queryParams]="submenu.params"
|
|
|
|
[fragment]="submenu.fragment">{{submenu.title}}</a>
|
2022-02-28 13:38:26 +01:00
|
|
|
<a *ngIf="submenu.route.length == 0 && submenu.url.length > 0"
|
|
|
|
routerLinkActive="uk-link"
|
|
|
|
href="{{submenu.url}}"
|
|
|
|
target="{{submenu.url.includes('http') ? '_blank' : '_self'}}">{{submenu.title}}</a>
|
2021-08-09 14:31:19 +02:00
|
|
|
<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" routerLinkActive="uk-link"
|
|
|
|
routerLink="{{subsubmenu.route}}" [queryParams]="subsubmenu.params"
|
|
|
|
[fragment]="subsubmenu.fragment">{{subsubmenu.title}}</a>
|
2022-02-28 13:38:26 +01:00
|
|
|
<a *ngIf="subsubmenu.route.length == 0 && subsubmenu.url.length > 0"
|
|
|
|
routerLinkActive="uk-link"
|
2021-08-09 14:31:19 +02:00
|
|
|
href="{{subsubmenu.url}}" target="_blank">{{subsubmenu.title}}</a>
|
|
|
|
</li>
|
|
|
|
</ng-container>
|
|
|
|
</ul>
|
|
|
|
|
2020-06-29 15:15:52 +02: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>
|
2018-02-05 14:14:59 +01:00
|
|
|
</div>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-01-11 16:20:43 +01:00
|
|
|
|
2020-06-29 15:15:52 +02:00
|
|
|
</li>
|
|
|
|
</ng-container>
|
2022-02-28 13:38:26 +01:00
|
|
|
<!-- Custom menu items -->
|
|
|
|
<ng-container *ngIf="customMenuItems?.length > 0 && properties.environment == 'development'">
|
|
|
|
<ng-container *ngFor="let menu of customMenuItems">
|
|
|
|
<li class="uk-parent">
|
|
|
|
<!-- INTERNAL ROOT-->
|
|
|
|
<a *ngIf="menu.type == 'internal' && menu.route && isEnabled([menu.route], showPage)"
|
|
|
|
routerLinkActive="uk-link"
|
|
|
|
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 -->
|
|
|
|
<a *ngIf="submenu.type == 'internal' && submenu.route && isEnabled([submenu.route], showPage)"
|
|
|
|
routerLinkActive="uk-link"
|
|
|
|
routerLink="{{submenu.route}}"
|
|
|
|
[queryParams]="submenu.params"
|
|
|
|
[fragment]="submenu.fragment"
|
|
|
|
[class.uk-active]="isTheActiveMenuItem(submenu)">
|
|
|
|
{{submenu.title}}
|
|
|
|
</a>
|
|
|
|
<!-- EXTERNAL CHILD -->
|
|
|
|
<a *ngIf="submenu.type == 'external' && submenu.url" routerLinkActive="uk-link"
|
|
|
|
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>
|
|
|
|
</nav>
|
2020-06-29 15:15:52 +02:00
|
|
|
</div>
|
|
|
|
</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">
|
2021-04-16 17:08:11 +02:00
|
|
|
<a *ngIf="!header.url" [routerLink]="header.route" [class.uk-padding-remove]="header.position !== 'left'"
|
|
|
|
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"
|
2021-04-19 18:30:19 +02:00
|
|
|
class="uk-responsive-height">
|
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>
|
2021-04-16 17:08:11 +02:00
|
|
|
<a *ngIf="header.url" [href]="header.url" [class.uk-padding-remove]="header.position !== 'left'"
|
|
|
|
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"
|
2021-04-19 18:30:19 +02:00
|
|
|
class="uk-responsive-height">
|
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>
|