nodebb-theme-persona 14.2.3 → 14.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "14.2.3",
3
+ "version": "14.2.4",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -8,7 +8,7 @@
8
8
  <!-- IF banned -->
9
9
  <div class="text-center">
10
10
  <!-- IF banned_until -->
11
- [[user:info.banned-until, {banned_until_readable}]]
11
+ [[user:info.banned-until, {isoTimeToLocaleString(./banned_until_readable, config.userLang)}]]
12
12
  <!-- ELSE -->
13
13
  [[user:info.banned-permanently]]
14
14
  <!-- ENDIF banned_until -->
@@ -10,21 +10,24 @@
10
10
  <div class="d-flex gap-1 justify-content-between">
11
11
  <div class="btn btn-ghost btn-sm d-flex gap-2 flex-grow-1 align-items-start text-start">
12
12
  <a class="flex-grow-0 flex-shrink-0" href="{{{ if ./user.userslug}}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}">
13
- {{{ if (./image && ./from) }}}
14
- <img class="avatar avatar-rounded" style="--avatar-size: 32px;" src="{./image}" />
13
+ {{{ if ./user }}}
14
+ {buildAvatar(./user, "32px", true)}
15
15
  {{{ else }}}
16
- {{{ if ./icon }}}
17
- <div class="avatar avatar-rounded" style="--avatar-size: 32px;"><i class="text-secondary fa {./icon}"></i></div>
18
- {{{ else }}}
19
- <div class="avatar avatar-rounded" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div>
16
+ {{{ if (./icon || ./image) }}}
17
+ <div class="avatar avatar-rounded" style="--avatar-size: 32px;"><i class="text-secondary fa {{{ if ./icon }}}{./icon}{{{ else }}}{./image}{{{ end }}}"></i></div>
20
18
  {{{ end }}}
21
19
  {{{ end }}}
22
20
  </a>
23
21
 
24
- <div class="d-flex flex-grow-1 flex-column align-items-start position-relative">
22
+ <div class="d-flex flex-grow-1 flex-column gap-1 align-items-start position-relative">
25
23
  <a href="{./path}" class="text-decoration-none d-inline-block text-reset text-break text-sm ff-sans stretched-link" component="notifications/item/link">
26
24
  {./bodyShort}
27
25
  </a>
26
+ {{{ if ./bodyLong}}}
27
+ <div class="text-secondary text-sm line-clamp-2 text-contain hidden-blockquote hidden-pre hidden-first-child-br">
28
+ {./bodyLong}
29
+ </div>
30
+ {{{ end }}}
28
31
  <div class="text-xs text-muted">{{{ if ./timeagoLong }}}{./timeagoLong}{{{ else }}}<span class="timeago" title="{./datetimeISO}"></span>{{{ end }}}</div>
29
32
  </div>
30
33
  </div>