From 720cf7c42479c4da22c6f0a88460d6c275a4c418 Mon Sep 17 00:00:00 2001 From: tshenry Date: Fri, 24 Feb 2023 15:37:38 -0800 Subject: [PATCH] DEV: Add classes to user profile's collapsed-info-panel (#20451) Some of the dt and dd elements already included classes (e.g. invited-by and groups). This simply makes things consistent by adding classes to the other dt and dd elements and should allow for easier customization. --- .../discourse/app/templates/user.hbs | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/discourse/app/templates/user.hbs b/app/assets/javascripts/discourse/app/templates/user.hbs index fd72ddbbe97..760dee20912 100644 --- a/app/assets/javascripts/discourse/app/templates/user.hbs +++ b/app/assets/javascripts/discourse/app/templates/user.hbs @@ -340,22 +340,25 @@
{{#if this.model.created_at}} -
{{i18n "user.created"}}
{{bound-date - this.model.created_at - }}
+
{{i18n "user.created"}}
{{bound-date this.model.created_at}}
{{/if}} {{#if this.model.last_posted_at}} -
{{i18n "user.last_posted"}}
{{bound-date +
{{i18n + "user.last_posted" + }}
{{bound-date this.model.last_posted_at }}
{{/if}} {{#if this.model.last_seen_at}} -
{{i18n "user.last_seen"}}
{{bound-date - this.model.last_seen_at - }}
+
{{i18n "user.last_seen"}}
{{bound-date this.model.last_seen_at}}
{{/if}} {{#if this.model.profile_view_count}} -
{{i18n "views"}}
>{{i18n "views"}}
{{this.model.profile_view_count}}
{{/if}} {{#if this.model.invited_by}} @@ -372,8 +375,8 @@ >{{this.model.trustLevel.name}}
{{/if}} {{#if this.canCheckEmails}} -
{{i18n "user.email.title"}}
-
+
+