{{settings.appName}}
    {{page-header-environment pageScope=pageScope }} {{#each navTree as |item|}} {{#if item.submenu.length}} {{! Has a submenu }}
  • {{#if (or (not item.resource) (rbac-allows resource=item.resource scope=item.resourceScope))}} {{#if item.route}} {{#link-to-as-attrs item.route models=item.ctx qp=item.qp onlyCurrentWhen=item.onlyCurrentWhen activeParent=true class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false" }} {{maybe-t item.localizedLabel item.label}} {{/link-to-as-attrs}} {{else}} {{maybe-t item.localizedLabel item.label}} {{/if}} {{/if}}
      {{#each item.submenu as |subitem|}} {{#if subitem.route}} {{#if (or (not subitem.resource) (rbac-allows resource=subitem.resource scope=subitem.resourceScope))}}
    • {{#link-to-as-attrs subitem.route models=subitem.ctx qp=subitem.qp activeParent=true onlyCurrentWhen=subitem.onlyCurrentWhen submenuItem=true }} {{maybe-t subitem.localizedLabel subitem.label}} {{/link-to-as-attrs}}
    • {{/if}} {{else if subitem.divider}}
    • {{else}} {{! Just a label }}
    • {{maybe-t subitem.localizedLabel subitem.label}}
    • {{/if}} {{/each}}
  • {{else if item.route}} {{#if (or (not item.resource) (rbac-allows resource=item.resource scope=item.resourceScope))}} {{! No submenu }}
  • {{#link-to-as-attrs item.route models=item.ctx qp=item.qp activeParent=true onlyCurrentWhen=item.onlyCurrentWhen class="nav-link" }} {{maybe-t item.localizedLabel item.label}} {{/link-to-as-attrs}}
  • {{/if}} {{else}} {{! Just a label }}
  • {{maybe-t item.localizedLabel item.label}}
  • {{/if}} {{/each}}
  • {{#if accessEnabled}} {{identity-avatar link=false identity=access.principal}} {{else}}
    {{/if}} {{t 'nav.srToggleDropdown'}}
      {{#if accessEnabled}}
    • {{identity-block principal=access.principal}}
    • {{/if}} {{#if isCaas}}
    • {{#link-to "global-admin.clusters"}}{{t 'nav.environment.manage'}}{{/link-to}}
    • {{/if}}
    • {{#link-to "authenticated.apikeys"}}{{t 'nav.api.link'}} {{/link-to}}
    • {{#link-to "authenticated.node-templates"}}{{t 'nav.nodeTemplates.link'}} {{/link-to}}
    • {{#link-to "authenticated.prefs"}}{{t 'nav.userPreferences.link'}} {{/link-to}}
    • {{#link-to "logout" class="user-logout"}}{{t 'nav.user.logout'}} {{/link-to}}