Files
threshold-ui/ui/core/app/templates/application.hbs
T

44 lines
1.1 KiB
Handlebars
Raw Normal View History

2020-07-23 09:37:06 -04:00
<HeadLayout />
{{title (app-name)}}
<Rose::Layout::Global as |layout|>
<layout.header>
2020-05-28 09:14:51 -04:00
<Rose::Header as |header|>
2020-05-29 17:00:42 -04:00
<header.brand @logo="logo-hashi" @text={{app-name}} />
2020-07-24 17:49:42 -04:00
{{#if this.session.isAuthenticated}}
<header.utilities as |utilities|>
<utilities.dropdown
@text="user@example.net"
@iconOnly={{true}}
@icon="user-square-fill" as |dropdown|
>
<dropdown.button
{{on "click" (route-action "invalidateSession")}}
>
2020-07-24 17:49:42 -04:00
{{t 'actions.deauthenticate'}}
</dropdown.button>
</utilities.dropdown>
</header.utilities>
{{/if}}
2020-05-28 09:14:51 -04:00
</Rose::Header>
</layout.header>
2020-06-08 11:32:19 -04:00
<layout.body>
2020-06-24 10:57:56 -04:00
{{outlet}}
</layout.body>
2020-05-30 12:42:10 -04:00
</Rose::Layout::Global>
2020-05-29 19:44:46 -04:00
<EmberNotify @closeAfter={{4000}} 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>