mirror of
https://github.com/status-im/consul.git
synced 2025-01-29 15:05:04 +00:00
4d13e31ae0
* Create BindingRule adapter and tests * Create BindingRule serializer and test * Create BindingRule model and repository * Add binding-rules mock data * Create binding-rules router and call endpoint * Create Binding rules tab * Create and use BindingView component * Create empty state for BindingView * Remove binding rule requestForQueryRecord endpoint and tests * Update binding rules selector to be monospaced * Add bind type tooltip * Create and Tabular-dl styling component * Update hr tag global styling * Rename BindingView to BindingList and refactor * Add translations for bind types tooltip info * Remove unused endpoint * Refactor based on review notes
41 lines
1.1 KiB
Handlebars
41 lines
1.1 KiB
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"))
|
|
(hash label="Binding rules" href=(href-to "dc.acls.auth-methods.show.binding-rules") selected=(is-href "dc.acls.auth-methods.show.binding-rules"))
|
|
)
|
|
}}/>
|
|
</BlockSlot>
|
|
<BlockSlot @name="content">
|
|
<Outlet
|
|
@name={{routeName}}
|
|
as |o|>
|
|
{{outlet}}
|
|
</Outlet>
|
|
</BlockSlot>
|
|
</AppView> |