44 lines
2.8 KiB
HTML
44 lines
2.8 KiB
HTML
<div class="sidebar-wrapper">
|
|
|
|
<mat-list class="nav mat-list" *ngFor="let groupMenuItem of groupMenuItems; let firstGroup = first; let i = index" [class.nav-list-item]="showItem(groupMenuItem)" [ngClass]="{'flex-grow-1': i == groupMenuItems.length - 2}">
|
|
<div *ngIf="showItem(groupMenuItem);">
|
|
<hr *ngIf="!firstGroup">
|
|
<mat-list-item routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}" *ngFor="let groupMenuRoute of groupMenuItem.routes; let first = first" class="nav-item" [ngClass]="{'mt-4': first && firstGroup}">
|
|
<a class="new-dmp nav-link nav-row" *ngIf="groupMenuRoute.path !== '/contact-support' && groupMenuRoute.path !== '/co-branding' && groupMenuRoute.path !== '/feedback' && groupMenuRoute.path !== '/datasets'" [routerLink]="[groupMenuRoute.path]" [ngClass]="{'dmp-tour': groupMenuRoute.path == '/plans'}">
|
|
<i class="material-icons icon">{{ groupMenuRoute.icon }}</i>
|
|
<i *ngIf="groupMenuRoute.path == '/plans'" class="material-icons icon-mask">person</i>
|
|
<span [ngClass]="{'pl-0': groupMenuRoute.path == '/plans'}">{{groupMenuRoute.title | translate}}</span>
|
|
</a>
|
|
<a class="nav-link nav-row dataset-tour" *ngIf="groupMenuRoute.path === '/datasets'" [routerLink]="[groupMenuRoute.path]">
|
|
<span class="inner-line"></span>
|
|
<i class="material-icons icon">{{ groupMenuRoute.icon }}</i>
|
|
<i class="material-icons icon-mask">person</i>
|
|
<span class="pl-0">{{groupMenuRoute.title | translate}}</span>
|
|
</a>
|
|
<a class="nav-link nav-row" *ngIf="groupMenuRoute.path === '/co-branding'" href="/splash/resources/co-branding.html">
|
|
<i class="material-icons icon">{{ groupMenuRoute.icon }}</i>
|
|
<span>{{groupMenuRoute.title | translate}} <span class="material-icons icon-external">open_in_new</span></span>
|
|
</a>
|
|
<a class="nav-link nav-row" *ngIf="groupMenuRoute.path === '/contact-support' && this.isAuthenticated()" [routerLink]="[groupMenuRoute.path]">
|
|
<i class="material-icons icon">{{ groupMenuRoute.icon }}</i>
|
|
<span>{{groupMenuRoute.title | translate}}</span>
|
|
</a>
|
|
<a class="nav-link nav-row" *ngIf="groupMenuRoute.path === '/contact-support' && !this.isAuthenticated()" href="/splash/contact.html">
|
|
<i class="material-icons icon">{{ groupMenuRoute.icon }}</i>
|
|
<span>{{groupMenuRoute.title | translate}} <span class="material-icons icon-external">open_in_new</span></span>
|
|
</a>
|
|
<a class="nav-link nav-row" *ngIf="groupMenuRoute.path === '/feedback'" (click)="openFeedback(groupMenuRoute)">
|
|
<i class="material-icons icon">{{ groupMenuRoute.icon }}</i>
|
|
<span>{{groupMenuRoute.title | translate}} <span class="material-icons icon-external">open_in_new</span></span>
|
|
</a>
|
|
</mat-list-item>
|
|
</div>
|
|
</mat-list>
|
|
|
|
<!-- Sidebar Footer -->
|
|
<div class="sidebar-footer pb-2">
|
|
<hr>
|
|
<app-sidebar-footer></app-sidebar-footer>
|
|
</div>
|
|
</div>
|