<clr-vertical-nav [clrVerticalNavCollapsible]="true">
  <a
    clrVerticalNavLink
    [title]="'MENU.APP_OVERVIEW' | translate"
    routerLink="detail"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.app.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="help-info"></clr-icon>
    {{'MENU.APP_OVERVIEW' | translate}}
  </a>
  <div class="nav-divider"></div>
  <a
    clrVerticalNavLink
    [title]="'MENU.DEPLOYMENT' | translate"
    routerLink="deployment"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.deployment.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="event"></clr-icon>
    {{'MENU.DEPLOYMENT' | translate}}
  </a>
  <a
    clrVerticalNavLink
    [title]="'MENU.STATEFULSET' | translate"
    routerLink="statefulset"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.statefulset?.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="blocks-group"></clr-icon>
    {{'MENU.STATEFULSET' | translate}}
  </a>
  <a
    clrVerticalNavLink
    [title]="'MENU.CRONJOB' | translate"
    routerLink="cronjob"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.cronjob.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="clock"></clr-icon>
    {{'MENU.CRONJOB' | translate}}
  </a>
  <a
    clrVerticalNavLink
    [title]="'MENU.DAEMONSET' | translate"
    routerLink="daemonset"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.daemonSet.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="layers"></clr-icon>
    {{'MENU.DAEMONSET' | translate}}
  </a>
  <div class="nav-divider" *ngIf="authService.currentAppPermission.deployment.read ||
                                  authService.currentAppPermission.statefulset.read ||
                                  authService.currentAppPermission.cronjob.read ||
                                  authService.currentUser.admin"></div>
  <a
    clrVerticalNavLink
    [title]="'MENU.AUTO_POD_SCALE' | translate"
    routerLink="autoscale"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.autoscale.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="cloud-scale"></clr-icon>
    {{'MENU.AUTO_POD_SCALE' | translate}}
  </a>
  <div class="nav-divider" *ngIf="authService.currentAppPermission.autoscale.read ||
                                  authService.currentUser.admin"></div>
  <a
    clrVerticalNavLink
    [title]="'MENU.SERVICE' | translate"
    routerLink="service"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.service.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="network-globe"></clr-icon>
    {{'MENU.SERVICE' | translate}}
  </a>
  <a
    clrVerticalNavLink
    title="Ingress"
    routerLink="ingress"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.ingress.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="network-switch"></clr-icon>
    Ingress
  </a>
  <div class="nav-divider" *ngIf="authService.currentAppPermission.service.read ||
                                  authService.currentAppPermission.ingress.read ||
                                      authService.currentUser.admin"></div>
  <a
    clrVerticalNavLink
    [title]="'MENU.CONFIGMAP' | translate"
    routerLink="configmap"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.configmap.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="file-settings"></clr-icon>
    {{'MENU.CONFIGMAP' | translate}}
  </a>
  <a
    clrVerticalNavLink
    [title]="'MENU.SECRET' | translate"
    routerLink="secret"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.secret.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="certificate"></clr-icon>
    {{'MENU.SECRET' | translate}}
  </a>
  <a
    clrVerticalNavLink
    title="PVC"
    routerLink="persistentvolumeclaim"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.pvc.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="storage"></clr-icon>
    PVC
  </a>
  <div class="nav-divider" *ngIf="authService.currentAppPermission.configmap.read ||
                                  authService.currentAppPermission.secret.read ||
                                  authService.currentAppPermission.pvc.read ||
                                  authService.currentUser.admin"></div>
  <a
    clrVerticalNavLink
    [title]="'MENU.MEMBER' | translate"
    routerLink="user"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.appUser.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="user"></clr-icon>
    {{'MENU.MEMBER' | translate}}
  </a>
  <a
    clrVerticalNavLink
    title="APIKeys"
    *ngIf="this.authService.config['enableApiKeys'] && (authService.currentAppPermission.apiKey.read || authService.currentUser.admin)"
    routerLink="apikey"
    routerLinkActive="active">
    <clr-icon clrVerticalNavIcon shape="key"></clr-icon>
    APIKeys
  </a>
  <a
    clrVerticalNavLink
    title="Webhooks"
    routerLink="webhook"
    routerLinkActive="active"
    *ngIf="authService.currentAppPermission.webHook.read || authService.currentUser.admin">
    <clr-icon clrVerticalNavIcon shape="pin"></clr-icon>
    Webhooks
  </a>
  <a
    clrVerticalNavLink
    [title]="'MENU.VIEW_MONITOR' | translate"
    (click)="goToMonitor()"
    href="javascript:void(0)"
    *ngIf="getMonitorUri() && (authService.currentAppPermission.appUser.read || authService.currentUser.admin)">
    <clr-icon clrVerticalNavIcon shape="dashboard"></clr-icon>
    {{'MENU.VIEW_MONITOR' | translate}}
  </a>
  <a href="javascript:;" style="flex: 1;"></a>
  <wayne-footer></wayne-footer>
</clr-vertical-nav>
