open-vault/ui/app/templates/components/identity/item-aliases.hbs

38 lines
1.3 KiB
Handlebars
Raw Normal View History

2018-04-03 14:16:57 +00:00
{{#each (if model.alias.id (array model.alias) model.aliases) as |item|}}
{{#linked-block
"vault.cluster.access.identity.aliases.show"
item.id
"details"
class="box is-sideless is-marginless"
}}
<div class="columns is-mobile">
<div class="column is-10">
<a href={{href-to "vault.cluster.access.identity.aliases.show" item.id "details"}}
class="has-text-black has-text-weight-semibold"
>{{i-con
glyph='role'
size=14
class="has-text-grey-light"
}}{{item.name}}</a>
<span class="tag"><code>{{item.mountType}}</code></span>
<code class="has-text-grey is-size-8">{{item.mountAccessor}}</code>
</div>
<div class="column has-text-right">
{{identity/popup-alias params=(array item)}}
2018-04-03 14:16:57 +00:00
</div>
</div>
{{/linked-block}}
{{else}}
<div class="box is-bottomless has-background-white-bis">
<div class="columns is-centered">
<div class="column is-half has-text-centered">
<div class="box is-shadowless has-background-white-bis">
<p class="has-text-grey" data-test-no-entity-aliases-text>
There are no {{model.identityType}} aliases for {{model.name}}.
</p>
</div>
</div>
</div>
</div>
{{/each}}