{{d-icon "arrow-left"}} {{i18n "admin.api.all_api_keys"}}
{{#if this.model.revoked_at}}{{d-icon "circle-xmark"}}{{/if}} {{this.model.truncatedKey}} {{#if this.editingDescription}} {{else}} {{if this.model.description this.model.description (i18n "admin.api.no_description") }} {{/if}}
{{#if this.editingDescription}} {{else}} {{/if}}
{{#if this.model.user}} {{avatar this.model.user imageSize="small"}} {{this.model.user.username}} {{else}} {{i18n "admin.api.all_users"}} {{/if}} {{format-date this.model.created_at leaveAgo="true"}} {{format-date this.model.updated_at leaveAgo="true"}} {{#if this.model.last_used_at}} {{format-date this.model.last_used_at leaveAgo="true"}} {{else}} {{i18n "admin.api.never_used"}} {{/if}} {{#if this.model.revoked_at}} {{format-date this.model.revoked_at leaveAgo="true"}} {{else}} {{i18n "no_value"}} {{/if}}
{{#if this.model.revoked_at}} {{else}} {{/if}}
{{#if this.model.api_key_scopes.length}}

{{i18n "admin.api.scopes.title"}}

{{#each this.model.api_key_scopes as |scope|}} {{/each}}
{{i18n "admin.api.scopes.resource"}} {{i18n "admin.api.scopes.action"}} {{i18n "admin.api.scopes.allowed_urls"}} {{i18n "admin.api.scopes.allowed_parameters"}}
{{scope.resource}} {{scope.action}} {{#each scope.parameters as |p|}}
{{p}}: {{#if (get scope.allowed_parameters p)}} {{get scope.allowed_parameters p}} {{else}} {{i18n "admin.api.scopes.any_parameter"}} {{/if}}
{{/each}}
{{/if}}