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

35 lines
1 KiB
Handlebars
Raw Normal View History

{{#each model.policies as |policyName|}}
{{#list-item-row
2018-04-03 14:16:57 +00:00
"vault.cluster.policy.show"
"acl"
item
class="is-selectable"
2018-04-03 14:16:57 +00:00
}}
<div class="columns is-mobile">
<div class="column is-10">
<a href={{href-to "vault.cluster.policy.show" "acl" policyName}}
class="is-block has-text-black has-text-weight-semibold"
><span class="is-underline">{{policyName}}</span>
2018-04-03 14:16:57 +00:00
</a>
</div>
<div class="column has-text-right">
{{#if model.canEdit}}
{{identity/popup-policy params=(array model policyName)}}
{{/if}}
2018-04-03 14:16:57 +00:00
</div>
</div>
{{/list-item-row}}
2018-04-03 14:16:57 +00:00
{{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 policies associated with {{model.name}}.
</p>
</div>
</div>
</div>
</div>
{{/each}}