mirror of https://github.com/status-im/consul.git
39 lines
927 B
Handlebars
39 lines
927 B
Handlebars
<HeadLayout />
|
|
{{page-title 'Consul' separator=' - '}}
|
|
|
|
{{#if (env 'CONSUL_ACLS_ENABLED')}}
|
|
{{document-attrs class="has-acls"}}
|
|
{{/if}}
|
|
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
|
|
{{document-attrs class="has-nspaces"}}
|
|
{{/if}}
|
|
|
|
<DataSource
|
|
@src="settings://consul:theme"
|
|
as |source|>
|
|
{{#each-in source.data as |key value|}}
|
|
{{#if (and value (contains key (array "color-scheme" "contrast")))}}
|
|
{{document-attrs class=(concat 'prefers-' key '-' value)}}
|
|
{{/if}}
|
|
{{/each-in}}
|
|
</DataSource>
|
|
|
|
{{#if (not-eq router.currentRouteName 'application')}}
|
|
<HashicorpConsul
|
|
id="wrapper"
|
|
@permissions={{permissions}}
|
|
@dcs={{dcs}}
|
|
@dc={{or dc dcs.firstObject}}
|
|
@nspaces={{nspaces}}
|
|
@nspace={{or nspace nspaces.firstObject}}
|
|
@onchange={{action "reauthorize"}}
|
|
>
|
|
<Outlet
|
|
@name="application"
|
|
as |o|>
|
|
{{outlet}}
|
|
</Outlet>
|
|
<Consul::Loader class="view-loader" />
|
|
</HashicorpConsul>
|
|
{{/if}}
|