48 lines
1.2 KiB
Handlebars
48 lines
1.2 KiB
Handlebars
{{page-title (app-name)}}
|
|
|
|
<Rose::Layout::Global as |layout|>
|
|
|
|
<layout.header>
|
|
<Rose::Header class="{{if (is-loading) " loading"}}" as |header|>
|
|
<header.brand @logo="logo-app" @text={{app-name}} />
|
|
|
|
{{#if this.session.isAuthenticated}}
|
|
<header.nav>
|
|
{{outlet "header-nav"}}
|
|
</header.nav>
|
|
|
|
<header.utilities as |utilities|>
|
|
<utilities.dropdown
|
|
@text={{this.session.data.authenticated.username}}
|
|
@icon="app-icons/user-profile"
|
|
as |dropdown|
|
|
>
|
|
<dropdown.button
|
|
{{on "click" (route-action "invalidateSession")}}
|
|
>
|
|
{{t 'actions.deauthenticate'}}
|
|
</dropdown.button>
|
|
</utilities.dropdown>
|
|
</header.utilities>
|
|
{{/if}}
|
|
|
|
</Rose::Header>
|
|
</layout.header>
|
|
|
|
<layout.body>
|
|
{{outlet}}
|
|
</layout.body>
|
|
|
|
</Rose::Layout::Global>
|
|
|
|
<EmberNotify @closeAfter={{this.notifyTimeout}} as |message close|>
|
|
<Rose::Notification
|
|
@style={{message.type}}
|
|
@heading={{t (concat 'states.' message.type)}}
|
|
@dismiss={{close}}
|
|
@dismissText={{t 'actions.dismiss'}}
|
|
>
|
|
{{message.text}}
|
|
</Rose::Notification>
|
|
</EmberNotify>
|