46 lines
1.7 KiB
Handlebars
46 lines
1.7 KiB
Handlebars
<PageHeader as |p|>
|
|
<p.top>
|
|
<nav class="breadcrumb">
|
|
<ul>
|
|
<li>
|
|
<span class="sep">/</span>
|
|
{{#link-to "vault.cluster.access.identity.index"}}
|
|
{{capitalize (pluralize model.identityType)}}
|
|
{{/link-to}}
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</p.top>
|
|
<p.levelLeft>
|
|
<h1 class="title is-3">
|
|
{{model.name}}
|
|
</h1>
|
|
</p.levelLeft>
|
|
<p.levelRight>
|
|
{{#unless (or (and (eq model.identityType "group") (eq model.type "internal")) model.alias)}}
|
|
{{#link-to "vault.cluster.access.identity.aliases.add" (pluralize model.identityType) model.id class="button has-icon-right is-ghost is-compact" data-test-entity-create-link=true}}
|
|
Add alias
|
|
{{i-con glyph="chevron-right" size=11}}
|
|
{{/link-to}}
|
|
{{/unless}}
|
|
{{#link-to "vault.cluster.access.identity.edit" (pluralize model.identityType) model.id class="button has-icon-right is-ghost is-compact" data-test-entity-edit-link=true}}
|
|
Edit {{model.identityType}}
|
|
{{i-con glyph="chevron-right" size=11}}
|
|
{{/link-to}}
|
|
</p.levelRight>
|
|
</PageHeader>
|
|
<div class="box is-sideless is-fullwidth is-paddingless is-marginless">
|
|
<nav class="tabs sub-nav">
|
|
<ul>
|
|
{{#each (tabs-for-identity-show model.identityType model.type) as |tab|}}
|
|
{{#link-to "vault.cluster.access.identity.show" (pluralize model.identityType) model.id tab tagName="li"}}
|
|
{{#link-to "vault.cluster.access.identity.show" (pluralize model.identityType) model.id tab}}
|
|
{{capitalize (humanize tab)}}
|
|
{{/link-to}}
|
|
{{/link-to}}
|
|
{{/each}}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{{component (concat 'identity/item-' section) model=model}}
|