open-vault/ui/app/templates/components/identity/item-groups.hbs
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

31 lines
888 B
Handlebars

{{#if model.groupIds}}
{{#each model.directGroupIds as |gid|}}
{{#link-to "vault.cluster.access.identity.show" "groups" gid "details"
class="list-item-row"
}}<Icon
@glyph="folder-outline"
class="has-text-grey-light"
/>{{gid}}
{{/link-to}}
{{/each}}
{{#each model.inheritedGroupIds as |gid|}}
{{#linked-block
"vault.cluster.access.identity.show" "groups" gid "details"
class="list-item-row"
}}
{{#link-to "vault.cluster.access.identity.show" "groups" gid "details"
class="has-text-black"
}}<Icon
@glyph="folder-outline"
class="has-text-grey-light"
/>{{gid}}
{{/link-to}}
<span class="tag has-text-grey is-size-8">inherited</span>
{{/linked-block}}
{{/each}}
{{else}}
<EmptyState
@title="{{model.name}} is not a member of any groups."
/>
{{/if}}