nodebb-theme-harmony 2.2.9 → 2.2.10

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-harmony",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -44,9 +44,9 @@
44
44
  <div class="d-flex gap-2" component="user/badges"></div>
45
45
  {{{ if isAdminOrGlobalModeratorOrModerator }}}
46
46
  {{{ if banned }}}
47
- <div class="text-xm text-muted">
47
+ <div class="text-sm text-muted">
48
48
  {{{ if banned_until }}}
49
- [[user:info.banned-until, {banned_until_readable}]]
49
+ [[user:info.banned-until, {isoTimeToLocaleString(./banned_until_readable, config.userLang)}]]
50
50
  {{{ else }}}
51
51
  [[user:info.banned-permanently]]
52
52
  {{{ end }}}
@@ -8,15 +8,13 @@
8
8
  {{{ each notifications }}}
9
9
  <div class="{./readClass}" data-nid="{./nid}" data-path="{./path}" {{{ if ./pid }}}data-pid="{./pid}"{{{ end }}}{{{ if ./tid }}}data-tid="{./tid}"{{{ end }}}>
10
10
  <div class="d-flex gap-1 justify-content-between">
11
- <div class="btn btn-ghost btn-sm d-flex gap-2 flex-grow-1 text-start align-items-start">
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>