2019-04-24 11:26:53 +02:00
|
|
|
<div class="logo">
|
2019-04-30 16:14:24 +02:00
|
|
|
<a href="/home">
|
|
|
|
<div class="logo-img">
|
|
|
|
<img src="/assets/images/OpenDMP.png" />
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
2019-04-30 16:14:24 +02:00
|
|
|
</a>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="sidebar-wrapper">
|
|
|
|
|
2019-04-30 16:14:24 +02:00
|
|
|
<!-- MOBILE MENU -->
|
2019-04-24 11:26:53 +02:00
|
|
|
|
2019-04-30 16:14:24 +02:00
|
|
|
<!-- <div *ngIf="isMobileMenu()"> -->
|
|
|
|
<div>
|
|
|
|
<!-- Search -->
|
|
|
|
<!-- <form class="navbar-form">
|
|
|
|
<span class="bmd-form-group">
|
|
|
|
<div class="input-group no-border">
|
|
|
|
<input type="text" value="" class="form-control" placeholder="Search...">
|
|
|
|
<button mat-raised-button type="submit" class="btn btn-white btn-round btn-just-icon">
|
|
|
|
<i class="material-icons">search</i>
|
|
|
|
<div class="ripple-container"></div>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</form> -->
|
2019-04-24 11:26:53 +02:00
|
|
|
|
2019-04-30 16:14:24 +02:00
|
|
|
<!-- Login -->
|
|
|
|
<ul class="nav navbar-nav nav-mobile-menu">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link" *ngIf="isAuthenticated();else loginoption">
|
|
|
|
<p style="display: flex; align-items: center;" [routerLink]=" ['/profile']">
|
|
|
|
<img mat-card-avatar class="my-mat-card-avatar" *ngIf="this.principalHasAvatar()"
|
|
|
|
[src]="this.getPrincipalAvatar()">
|
|
|
|
<span class="d-lg-none d-md-block">{{ 'SIDE-BAR.ACCOUNT' | translate }}</span>
|
|
|
|
</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<ng-template #loginoption>
|
|
|
|
<button mat-button [routerLink]=" ['/login'] ">
|
|
|
|
<span class="login-label">{{ 'GENERAL.ACTIONS.LOG-IN' | translate }}</span>
|
|
|
|
</button>
|
|
|
|
</ng-template>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2019-04-24 11:26:53 +02:00
|
|
|
|
2019-04-30 16:14:24 +02:00
|
|
|
<!-- END OF MOBILE MENU -->
|
|
|
|
|
|
|
|
<ul class="nav" *ngFor="let groupMenuItem of groupMenuItems; last as isLast; first as isFirst">
|
|
|
|
<div class="sidebarSubtitle">
|
|
|
|
<p>{{ groupMenuItem.title }}</p>
|
|
|
|
</div>
|
|
|
|
<li routerLinkActive="active" *ngFor="let groupMenuRoute of groupMenuItem.routes"
|
|
|
|
class="{{groupMenuRoute.class}} nav-item">
|
|
|
|
<a class="nav-link" [routerLink]="[groupMenuRoute.path]">
|
2019-04-24 11:26:53 +02:00
|
|
|
<i *ngIf="isFirst" class="material-icons">{{ groupMenuRoute.icon }}</i>
|
2019-04-30 16:14:24 +02:00
|
|
|
<i *ngIf="!isFirst" class="material-icons-outlined">{{ groupMenuRoute.icon }}</i>
|
|
|
|
<p>{{ groupMenuRoute.title }}</p>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<hr *ngIf="!isLast">
|
|
|
|
</ul>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|