Files
threshold-ui/ui/admin/app/templates/scopes/scope/-header-nav.hbs
T
Zhihe Li ccf462019b chore: 🤖 Add eol-last rule (#1296)
* chore: 🤖 Add eol-last rule

* style: 💄 Add newlines for core

* style: 💄 Add newlines to EOF in rose

* style: 💄 Add newlines for admin

* style: 💄 Add newlines in desktop templates
2022-09-01 17:43:30 -04:00

36 lines
948 B
Handlebars

<Rose::Dropdown
@text={{this.scopes.selectedOrg.displayName}}
@icon={{if
this.scopes.selectedOrg.isGlobal
'flight-icons/svg/globe-16'
'flight-icons/svg/org-16'
}}
as |dropdown|
>
{{#if this.session.data.authenticated.isGlobal}}
<dropdown.link @route='scopes.scope' @model='global'>
{{t 'titles.global'}}
</dropdown.link>
<dropdown.separator />
{{/if}}
{{#each this.scopes.orgs as |scope|}}
<dropdown.link @route='scopes.scope' @model={{scope.id}}>
{{scope.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
{{#if this.scopes.selectedProject}}
<Rose::Dropdown
@text={{this.scopes.selectedProject.displayName}}
@icon='flight-icons/svg/grid-16'
as |dropdown|
>
{{#each this.scopes.projects as |scope|}}
<dropdown.link @route='scopes.scope' @model={{scope.id}}>
{{scope.displayName}}
</dropdown.link>
{{/each}}
</Rose::Dropdown>
{{/if}}