{{#if model}}
{{i18n "admin.api.key"}} | {{i18n "admin.api.user"}} | {{i18n "admin.api.created"}} | {{i18n "admin.api.last_used"}} | {{#each model as |k|}} |
---|---|---|---|---|
{{k.key}} |
{{i18n 'admin.api.user'}}
{{#if k.user}}
{{#link-to "adminUser" k.user}}
{{avatar k.user imageSize="small"}}
{{/link-to}}
{{else}}
{{i18n "admin.api.all_users"}}
{{/if}}
|
{{i18n 'admin.api.created'}}
{{format-date k.created_at}}
|
{{i18n 'admin.api.last_used'}}
{{#if k.last_used_at}}
{{format-date k.last_used_at}}
{{else}}
{{i18n "admin.api.never_used"}}
{{/if}}
|
{{d-button class="btn-default" action=(action "regenerateKey") actionParam=k icon="undo" label="admin.api.regenerate"}} {{d-button class="btn-default" action=(action "revokeKey") actionParam=k icon="times" label="admin.api.revoke"}} |
{{i18n "admin.api.none"}}
{{/if}} {{#unless hasMasterKey}} {{d-button class="btn-primary" action=(action "generateMasterKey") icon="key"}} {{/unless}}