{{#if (and (not accessibleNamespaces.length) inRootNamespace)}}
{{!-- Just yield the logo if they're in the root namespace and only have access to it --}} {{yield}}
{{else}}
{{yield}} {{#if namespaceDisplay}}{{namespaceDisplay}}{{/if}}
{{#if (not isUserRootNamespace)}} {{/if}}
{{#if namespaceService.canList}} {{#link-to "vault.cluster.access.namespaces" class="namespace-manage-link"}} Manage {{/link-to}} {{/if}}
Current namespace
{{#if (contains '' lastMenuLeaves)}} {{!-- leaf is '' which is the root namespace, and then we need to iterate the root leaves --}}
{{~#each rootLeaves as |rootLeaf|}} {{/each~}}
{{/if}} {{#each lastMenuLeaves as |leaf|}}
{{~#each-in (get namespaceTree leaf) as |leafName|}} {{/each-in~}}
{{/each}}
{{/if}}