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.
This commit is contained in:
tshenry 2023-02-24 15:37:38 -08:00 committed by GitHub
parent 90ed30b3ff
commit 720cf7c424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 10 deletions

View File

@ -340,22 +340,25 @@
<div class="secondary" id="collapsed-info-panel"> <div class="secondary" id="collapsed-info-panel">
<dl> <dl>
{{#if this.model.created_at}} {{#if this.model.created_at}}
<div><dt>{{i18n "user.created"}}</dt><dd>{{bound-date <div><dt class="created-at">{{i18n "user.created"}}</dt><dd
this.model.created_at class="created-at"
}}</dd></div> >{{bound-date this.model.created_at}}</dd></div>
{{/if}} {{/if}}
{{#if this.model.last_posted_at}} {{#if this.model.last_posted_at}}
<div><dt>{{i18n "user.last_posted"}}</dt><dd>{{bound-date <div><dt class="last-posted-at">{{i18n
"user.last_posted"
}}</dt><dd class="last-posted-at">{{bound-date
this.model.last_posted_at this.model.last_posted_at
}}</dd></div> }}</dd></div>
{{/if}} {{/if}}
{{#if this.model.last_seen_at}} {{#if this.model.last_seen_at}}
<div><dt>{{i18n "user.last_seen"}}</dt><dd>{{bound-date <div><dt class="last-seen-at">{{i18n "user.last_seen"}}</dt><dd
this.model.last_seen_at class="last-seen-at"
}}</dd></div> >{{bound-date this.model.last_seen_at}}</dd></div>
{{/if}} {{/if}}
{{#if this.model.profile_view_count}} {{#if this.model.profile_view_count}}
<div><dt>{{i18n "views"}}</dt><dd <div><dt class="profile-view-count">>{{i18n "views"}}</dt><dd
class="profile-view-count"
>{{this.model.profile_view_count}}</dd></div> >{{this.model.profile_view_count}}</dd></div>
{{/if}} {{/if}}
{{#if this.model.invited_by}} {{#if this.model.invited_by}}
@ -372,8 +375,8 @@
>{{this.model.trustLevel.name}}</dd></div> >{{this.model.trustLevel.name}}</dd></div>
{{/if}} {{/if}}
{{#if this.canCheckEmails}} {{#if this.canCheckEmails}}
<div><dt>{{i18n "user.email.title"}}</dt> <div><dt class="email">{{i18n "user.email.title"}}</dt>
<dd title={{this.model.email}}> <dd class="email" title={{this.model.email}}>
{{#if this.model.email}} {{#if this.model.email}}
{{this.model.email}} {{this.model.email}}
{{else}} {{else}}