{{settings.appName}}
{{page-header-project pageScope=pageScope}}
{{#each navTree as |item|}}
{{#if item.submenu.length}}
{{! Has a submenu }}
{{#hover-dropdown tagName="li" class="nav-item" as |dd|}}
{{#if
(or
(not item.resource)
(rbac-allows resource=item.resource scope=item.resourceScope)
)
}}
{{#if item.route}}
{{#link-to-as-attrs
ourRoute=item.route
ctx=item.ctx
qp=item.qp
currentWhen=item.currentWhen
activeParent="LI"
role="button"
aria-haspopup="true"
aria-expanded="false"
}}
{{t item.localizedLabel default=item.label}}
{{/link-to-as-attrs}}
{{else}}
{{t item.localizedLabel default=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
ourRoute=subitem.route
ctx=subitem.ctx
qp=subitem.qp
activeParent="LI"
currentWhen=subitem.currentWhen
}}
{{t subitem.localizedLabel default=subitem.label}}
{{/link-to-as-attrs}}
{{/if}}
{{else if subitem.divider}}
{{else if subitem.dashboardBaseLink}}
{{#if dashboardBaseLink}}
-
{{t subitem.localizedLabel default=subitem.label}}
{{/if}}
{{else if subitem.dashboardLink}}
{{#if dashboardLink}}
-
{{t subitem.localizedLabel default=subitem.label}}
{{/if}}
{{else}}
{{! Just a label }}
{{/if}}
{{/each}}
{{/hover-dropdown}}
{{else if item.route}}
{{#if
(or
(not item.resource)
(rbac-allows resource=item.resource scope=item.resourceScope)
)
}}
{{! No submenu }}
-
{{#link-to-as-attrs
ourRoute=item.route
ctx=item.ctx
qp=item.qp
activeParent="LI"
currentWhen=item.currentWhen
class="nav-link"
}}
{{t item.localizedLabel default=item.label}}
{{/link-to-as-attrs}}
{{/if}}
{{else if item.dashboardBaseLink}}
{{#if dashboardBaseLink}}
-
{{t item.localizedLabel default=item.label}}
{{/if}}
{{else if item.dashboardLink}}
{{#if dashboardLink}}
-
{{t item.localizedLabel default=item.label}}
{{/if}}
{{else}}
{{! Just a label }}
{{/if}}
{{/each}}
{{#if dashboardLink}}
{{/if}}
{{#hover-dropdown
tagName="ul"
class="nav-user list-unstyled"
horizontalPosition="right"
delay=250 as |dd|
}}
{{#if accessEnabled}}
{{identity-avatar link=false identity=access.principal}}
{{else}}
{{/if}}
{{t "nav.srToggleDropdown"}}
{{#if accessEnabled}}
{{identity-block principal=access.principal}}
{{/if}}
{{#link-to "authenticated.apikeys"}}
{{t "nav.api.link"}}
{{/link-to}}
{{#link-to "global-admin.security.cloud-credentials"}}
{{t "nav.admin.security.cloudCredentials"}}
{{/link-to}}
{{#link-to "nodes.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}}
{{/hover-dropdown}}