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

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

{{#each 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}} {{d-icon "question-circle"}} {{#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}}