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

54 lines
1.6 KiB
Handlebars
Raw Normal View History

2021-05-17 21:41:39 +00:00
{{#if @model.hasMembers}}
{{#each @model.memberGroupIds as |gid|}}
2018-07-10 19:38:02 +00:00
{{#linked-block
"vault.cluster.access.identity.show"
"groups"
gid
details
2018-07-10 19:38:02 +00:00
class="list-item-row"
}}
<div class="columns is-mobile">
<div class="column is-10">
<LinkTo @route="vault.cluster.access.identity.show" @models={{array "groups" gid "details"}} class="is-block has-text-black has-text-weight-semibold">
<Icon @name="folder" class="has-text-grey-light" />{{gid}}
</LinkTo>
</div>
<div class="column has-text-right">
2021-05-17 21:41:39 +00:00
{{#if @model.canEdit}}
<Identity::PopupMembers @params={{array @model "memberGroupIds" gid}} />
{{/if}}
</div>
</div>
2018-07-10 19:38:02 +00:00
{{/linked-block}}
2018-04-03 14:16:57 +00:00
{{/each}}
2021-05-17 21:41:39 +00:00
{{#each @model.memberEntityIds as |gid|}}
2018-07-10 19:38:02 +00:00
{{#linked-block
"vault.cluster.access.identity.show"
"groups"
gid
details
2018-07-10 19:38:02 +00:00
class="list-item-row"
}}
<div class="columns">
<div class="column is-10">
2021-05-17 21:41:39 +00:00
<LinkTo
@route="vault.cluster.access.identity.show"
@models={{array "entities" gid "details"}}
class="is-block has-text-black has-text-weight-semibold">
<Icon @name="user" class="has-text-grey-light" />{{gid}}
2021-05-17 21:41:39 +00:00
</LinkTo>
</div>
<div class="column has-text-right">
2021-05-17 21:41:39 +00:00
{{#if @model.canEdit}}
<Identity::PopupMembers @params={{array @model "memberEntityIds" gid}} />
{{/if}}
</div>
</div>
2018-07-10 19:38:02 +00:00
{{/linked-block}}
2018-04-03 14:16:57 +00:00
{{/each}}
{{else}}
2018-11-03 16:33:32 +00:00
<EmptyState
@title="No members in this group yet"
/>
2018-04-03 14:16:57 +00:00
{{/if}}