mirror of https://github.com/hashicorp/consul
40 lines
995 B
Handlebars
40 lines
995 B
Handlebars
|
{{#if isAuthorized }}
|
||
|
{{page-title item.Name}}
|
||
|
{{else}}
|
||
|
{{page-title 'Access Controls'}}
|
||
|
{{/if}}
|
||
|
<AppView
|
||
|
@authorized={{isAuthorized}}
|
||
|
@enabled={{isEnabled}}
|
||
|
>
|
||
|
<BlockSlot @name="breadcrumbs">
|
||
|
<ol>
|
||
|
<li><a data-test-back href={{href-to 'dc.acls.auth-methods'}}>All Auth Methods</a></li>
|
||
|
</ol>
|
||
|
</BlockSlot>
|
||
|
<BlockSlot @name="header">
|
||
|
<h1>
|
||
|
{{#if isAuthorized }}
|
||
|
{{item.Name}}
|
||
|
{{else}}
|
||
|
Access Controls
|
||
|
{{/if}}
|
||
|
</h1>
|
||
|
<Consul::AuthMethod::Type @item={{item}} />
|
||
|
</BlockSlot>
|
||
|
<BlockSlot @name="nav">
|
||
|
<TabNav @items={{
|
||
|
compact
|
||
|
(array
|
||
|
(hash label="General info" href=(href-to "dc.acls.auth-methods.show.auth-method") selected=(is-href "dc.acls.auth-methods.show.auth-method"))
|
||
|
)
|
||
|
}}/>
|
||
|
</BlockSlot>
|
||
|
<BlockSlot @name="content">
|
||
|
<Outlet
|
||
|
@name={{routeName}}
|
||
|
as |o|>
|
||
|
{{outlet}}
|
||
|
</Outlet>
|
||
|
</BlockSlot>
|
||
|
</AppView>
|