{{#if (not-eq @tab "actions")}} {{#if (eq @tab "versions")}} {{/if}} {{#if (eq @mode "show")}} {{#if (or @capabilities.canUpdate @capabilities.canDelete)}} Edit encryption key {{/if}} {{/if}} {{/if}} {{#if (eq @tab "actions")}}
{{#each @model.supportedActions as |supportedAction|}}

{{#if (eq supportedAction.name "export")}} Export Key {{else if (eq supportedAction.name "hmac")}} HMAC {{else}} {{humanize supportedAction.name}} {{/if}}

{{supportedAction.description}}

{{/each}}
{{else if (eq @tab "versions")}} {{#if (or (eq @key.type "aes256-gcm96") (eq @key.type "chacha20-poly1305") (eq @key.type "aes128-gcm96"))}} {{#each-in @key.keys as |version creationTimestamp|}}
Version {{version}}
{{date-from-now creationTimestamp addSuffix=true}}
{{#if (coerce-eq @key.minDecryptionVersion version)}}

Current minimum decryption version

{{/if}}
{{/each-in}} {{else}} {{#each-in @key.keys as |version meta|}}
Version {{version}}
{{date-from-now meta.creation_time addSuffix=true}}
{{#if (coerce-eq @key.minDecryptionVersion version)}}

Current minimum decryption version

{{/if}}
{{/each-in}} {{/if}} {{else}} {{#if @key.derived}} {{/if}} {{/if}}