diff --git a/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs b/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs index 5845aab6135..b331a95edca 100644 --- a/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs +++ b/app/assets/javascripts/admin/addon/templates/api-keys-index.hbs @@ -7,7 +7,7 @@ {{#if this.model}} - +
@@ -18,16 +18,21 @@ {{#each this.model as |k|}} - - + - - - - -
{{i18n "admin.api.key"}} {{i18n "admin.api.description"}}
+
{{#if k.revoked_at}}{{d-icon "circle-xmark"}}{{/if}} {{k.truncatedKey}} + +
{{i18n + "admin.api.description" + }}
{{k.shortDescription}}
-
{{i18n "admin.api.user"}}
+
+
{{i18n + "admin.api.user" + }}
{{#if k.user}} {{avatar k.user imageSize="small"}} @@ -36,19 +41,23 @@ {{i18n "admin.api.all_users"}} {{/if}}
-
{{i18n "admin.api.created"}}
+
+
{{i18n + "admin.api.created" + }}
{{format-date k.created_at}}
-
{{i18n "admin.api.last_used"}}
+
+
{{i18n + "admin.api.last_used" + }}
{{#if k.last_used_at}} {{format-date k.last_used_at}} {{else}} {{i18n "admin.api.never_used"}} {{/if}}
+