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

32 lines
1.1 KiB
Handlebars
Raw Normal View History

2018-04-03 14:16:57 +00:00
{{#each-in model.metadata as |key value|}}
2018-07-10 21:48:36 +00:00
<div class="info-table-row is-mobile">
<div class="is-flex is-fullwidth">
<div class="column is-one-quarter">
<span class="is-label has-text-grey-dark">
{{key}}
</span>
</div>
<div class="column is-5">
{{value}}
</div>
<div class="column has-text-right">
{{#if model.canEdit}}
{{identity/popup-metadata params=(array model key)}}
{{/if}}
</div>
2018-04-03 14:16:57 +00:00
</div>
</div>
{{else}}
2018-11-02 20:17:02 +00:00
<EmptyState
@title="No metadata for {{model.name}} yet"
2018-11-14 20:58:33 +00:00
@message="You can store custom data that you want to associate with a {{lowercase (humanize model.identityType)}}. Edit this {{lowercase (humanize model.identityType)}} to get started."
>
2018-11-03 17:21:49 +00:00
{{#link-to "vault.cluster.access.identity.aliases.edit" model.id tagName="button" class="link"}}
2018-11-02 20:17:02 +00:00
Edit {{lowercase (humanize model.identityType)}}
{{/link-to}}
2018-11-14 20:58:33 +00:00
<LearnLink @path="/vault/identity-access-management/iam-identity">
2018-11-02 20:17:02 +00:00
Learn More
2018-11-14 20:58:33 +00:00
</LearnLink>
2018-11-02 20:17:02 +00:00
</EmptyState>
2018-04-03 14:16:57 +00:00
{{/each-in}}