2018-08-16 17:48:24 +00:00
|
|
|
{{#with (options-for-backend model.engineType) as |options|}}
|
2018-06-12 21:06:37 +00:00
|
|
|
<PageHeader as |p|>
|
|
|
|
<p.top>
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#key-value-header
|
|
|
|
baseKey=baseKey
|
|
|
|
path="vault.cluster.secrets.backend.list"
|
|
|
|
root=backendCrumb
|
|
|
|
}}
|
|
|
|
<li>
|
2019-06-21 15:18:26 +00:00
|
|
|
<span class="sep">
|
|
|
|
/
|
|
|
|
</span>
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#link-to "vault.cluster.secrets"}}
|
2018-05-23 16:25:52 +00:00
|
|
|
secrets
|
2018-08-16 17:48:24 +00:00
|
|
|
{{/link-to}}
|
2018-05-23 16:25:52 +00:00
|
|
|
</li>
|
|
|
|
{{/key-value-header}}
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.top>
|
|
|
|
<p.levelLeft>
|
2018-05-23 16:25:52 +00:00
|
|
|
<h1 class="title is-3">
|
2019-06-21 15:18:26 +00:00
|
|
|
<Icon @glyph={{or model.engineType "secrets"}} @size="xl" class="has-text-grey-light" />
|
2018-05-23 16:25:52 +00:00
|
|
|
{{model.id}}
|
|
|
|
{{#if (eq model.options.version 2)}}
|
2018-10-21 19:19:34 +00:00
|
|
|
<span class="tag">
|
2018-05-23 16:25:52 +00:00
|
|
|
Version 2
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</h1>
|
2018-06-12 21:06:37 +00:00
|
|
|
</p.levelLeft>
|
|
|
|
</PageHeader>
|
2018-05-23 16:25:52 +00:00
|
|
|
{{#if options.tabs}}
|
2019-02-14 16:04:46 +00:00
|
|
|
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
2018-10-21 19:19:34 +00:00
|
|
|
<nav class="tabs">
|
2018-05-23 16:25:52 +00:00
|
|
|
<ul>
|
|
|
|
{{#each options.tabs as |oTab|}}
|
|
|
|
{{#if oTab.tab}}
|
2019-06-21 15:18:26 +00:00
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.list-root"
|
|
|
|
(query-params tab=oTab.tab)
|
|
|
|
tagName="li"
|
|
|
|
activeClass="is-active"
|
|
|
|
data-test-tab=oTab.label
|
|
|
|
}}
|
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.list-root"
|
|
|
|
(query-params tab=oTab.tab)
|
|
|
|
}}
|
2018-05-23 16:25:52 +00:00
|
|
|
{{oTab.label}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{else}}
|
2019-06-21 15:18:26 +00:00
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.list-root"
|
|
|
|
(query-params tab="")
|
|
|
|
tagName="li"
|
|
|
|
activeClass="is-active"
|
|
|
|
data-test-tab=oTab.label
|
|
|
|
}}
|
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.list-root"
|
|
|
|
(query-params tab="")
|
|
|
|
}}
|
2018-05-23 16:25:52 +00:00
|
|
|
{{oTab.label}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
|
|
|
{{/each}}
|
2019-06-21 15:18:26 +00:00
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.configuration"
|
|
|
|
tagName="li"
|
|
|
|
activeClass="is-active"
|
|
|
|
}}
|
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.configuration"
|
|
|
|
data-test-configuration-tab=true
|
|
|
|
}}
|
2018-05-23 16:25:52 +00:00
|
|
|
Configuration
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
2019-06-21 15:18:26 +00:00
|
|
|
{{! if there are no tabs in the options, we'll hardcode them here }}
|
2019-02-14 16:04:46 +00:00
|
|
|
<div class="tabs-container box is-bottomless is-marginless is-fullwidth is-paddingless">
|
2018-10-21 19:19:34 +00:00
|
|
|
<nav class="tabs">
|
2018-05-23 16:25:52 +00:00
|
|
|
<ul>
|
2018-08-16 17:48:24 +00:00
|
|
|
{{#if (contains model.engineType (supported-secret-backends))}}
|
2019-06-21 15:18:26 +00:00
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.list-root"
|
|
|
|
tagName="li"
|
|
|
|
activeClass="is-active"
|
|
|
|
current-when="vault.cluster.secrets.backend.list-root vault.cluster.secrets.backend.list"
|
|
|
|
}}
|
|
|
|
{{#link-to "vault.cluster.secrets.backend.list-root"}}
|
2018-05-23 16:25:52 +00:00
|
|
|
{{capitalize (pluralize options.item)}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
{{/if}}
|
2019-06-21 15:18:26 +00:00
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.configuration"
|
|
|
|
tagName="li"
|
|
|
|
activeClass="is-active"
|
|
|
|
}}
|
|
|
|
{{#link-to
|
|
|
|
"vault.cluster.secrets.backend.configuration"
|
|
|
|
data-test-configuration-tab=true
|
|
|
|
}}
|
2018-05-23 16:25:52 +00:00
|
|
|
Configuration
|
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-06-21 15:18:26 +00:00
|
|
|
{{/with}}
|