2019-12-23 13:52:26 +01:00
|
|
|
<aside id="sidebar_main">
|
2020-06-04 20:30:45 +02:00
|
|
|
<a *ngIf= "showHeader" class="sidebar_main_header uk-text-center" [href]="headerUrl"
|
|
|
|
[class.uk-disabled]="(!headerUrl)">
|
2020-06-11 18:59:00 +02:00
|
|
|
<img *ngIf="properties.environment =='beta' || properties.environment =='development'" class="badge"
|
|
|
|
[src]="'assets/common-assets/'+(properties.environment =='beta'?'beta_flag.svg':'prototype_flag.svg')"
|
|
|
|
[alt]="properties.environment">
|
2020-06-04 13:21:32 +02:00
|
|
|
<img *ngIf="headerLogoUrl" class="logo " [src]="headerLogoUrl">
|
|
|
|
<div *ngIf="!headerLogoUrl" class="portalLogo logo" ></div>
|
2020-06-04 20:30:45 +02:00
|
|
|
</a>
|
2020-08-04 09:25:32 +02:00
|
|
|
<div *ngIf="items.length > 0" class="menu_section uk-margin-large-top">
|
|
|
|
<ul class="uk-margin-large-top">
|
2020-06-04 13:21:32 +02:00
|
|
|
<li *ngIf="headerName"><a
|
|
|
|
class="uk-disabled"><span class="menu_title uk-text-muted uk-text-uppercase">{{headerName}}</span></a></li>
|
2019-12-23 13:52:26 +01:00
|
|
|
<ng-template ngFor [ngForOf]="items" let-item let-i="index">
|
|
|
|
<li [class.current_section]="isTheActiveMenuItem(item)"
|
|
|
|
[class.act_section]="item.open"
|
|
|
|
[title]="item.title"
|
|
|
|
[class.submenu_trigger]="item.items.length > 1">
|
2020-08-06 09:24:44 +02:00
|
|
|
<a *ngIf="item.items.length <= 1" [routerLink]="(item.route && !isTheActiveMenuItem(item))?item.route:null"
|
|
|
|
[queryParams]=item.params [queryParamsHandling]="queryParamsHandling">
|
2020-06-11 18:59:00 +02:00
|
|
|
<span *ngIf="item.icon" class="menu_icon">
|
2020-06-29 15:35:49 +02:00
|
|
|
<span [innerHTML]="satinizeHTML(item.icon)"></span>
|
2020-06-11 18:59:00 +02:00
|
|
|
</span>
|
|
|
|
<span *ngIf="!item.icon" class="menu_icon"><i class="material-icons">donut_large</i></span>
|
2019-12-23 13:52:26 +01:00
|
|
|
<span class="menu_title">{{item.title}}</span>
|
2020-07-13 11:15:00 +02:00
|
|
|
<div class="menu_mini_title">{{item.title}}</div>
|
2019-12-23 13:52:26 +01:00
|
|
|
</a>
|
|
|
|
<ng-template [ngIf]="item.items.length > 1">
|
|
|
|
<a (click)="item.open = !item.open">
|
|
|
|
<span *ngIf="item.icon" class="menu_icon"><i class="material-icons">{{item.icon}}</i></span>
|
|
|
|
<span class="menu_title">{{item.title}}</span>
|
2020-07-13 11:15:00 +02:00
|
|
|
<div class="menu_mini_title">{{item.title}}</div>
|
2019-12-23 13:52:26 +01:00
|
|
|
</a>
|
|
|
|
<ul [style.display]="(item.open?'block':'none')">
|
|
|
|
<ng-template ngFor [ngForOf]="item.items" let-subItem let-j="index">
|
|
|
|
<li *ngIf="subItem.route" [class.act_item]="isTheActiveMenuItem(item, subItem)">
|
2020-08-06 09:24:44 +02:00
|
|
|
<a [routerLink]="!isTheActiveMenuItem(item, subItem)?subItem.route:null"
|
|
|
|
[queryParams]=subItem.params [queryParamsHandling]="queryParamsHandling">
|
2019-12-23 13:52:26 +01:00
|
|
|
<span *ngIf="subItem.icon" class="menu_icon"><i class="material-icons">{{subItem.icon}}</i></span>
|
|
|
|
<span class="menu_title">{{subItem.title}}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
|
|
|
</ng-template>
|
|
|
|
</li>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
2020-06-29 15:35:49 +02:00
|
|
|
<ng-template [ngIf]="searchLink">
|
2020-08-04 09:25:32 +02:00
|
|
|
<ul class="searchLink uk-margin-large-top">
|
2020-07-28 16:47:51 +02:00
|
|
|
<li [class.current_section]="isTheActiveUrl(searchLink)" title="Search for Research Results" >
|
2020-07-13 11:15:00 +02:00
|
|
|
<a [routerLink]="searchLink" [queryParams]="searchParams">
|
2020-07-10 10:37:17 +02:00
|
|
|
<span class="menu_icon"><i class="material-icons">search</i></span>
|
|
|
|
<span class="menu_title">Search for Research Results</span>
|
2020-07-13 11:15:00 +02:00
|
|
|
<div class="menu_mini_title">Search</div>
|
2020-07-10 10:37:17 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2020-06-04 13:21:32 +02:00
|
|
|
</ul>
|
|
|
|
</ng-template>
|
2019-12-23 13:52:26 +01:00
|
|
|
</div>
|
|
|
|
</aside>
|