From b4f7a1b761ca4613bbd4a759ce0b496c2de014e5 Mon Sep 17 00:00:00 2001 From: "Ella E." Date: Wed, 6 Nov 2024 18:38:25 -0700 Subject: [PATCH] UX: Apply admin table classes for consistent mobile styling on the API keys page (#29630) * UX: Apply admin table classes for consistent mobile styling on the API keys page * apply prettier --- .../admin/addon/templates/api-keys-index.hbs | 31 +++++++++------ app/assets/stylesheets/common/admin/api.scss | 39 +++---------------- 2 files changed, 26 insertions(+), 44 deletions(-) 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}}
+