nodebb-theme-harmony 1.1.22 → 1.1.23

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": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.3.0"
6
6
  },
@@ -9,13 +9,18 @@
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
11
  <div class="btn-ghost-sm d-flex gap-2 flex-grow-1 align-items-start">
12
- {{{ if ./image }}}
13
- {{{ if ./from }}}
14
- <a class="flex-grow-0 flex-shrink-0" href="{config.relative_path}/user/{./user.userslug}"><img class="avatar avatar-rounded" style="--avatar-size: 32px;" src="{./image}" /></a>
15
- {{{ end }}}
16
- {{{ else }}}
17
- <a class="flex-grow-0 flex-shrink-0" href="{config.relative_path}/user/{./user.userslug}"><div class="avatar avatar-rounded" style="--avatar-size: 32px; background-color: {./user.icon:bgColor};">{./user.icon:text}</div></a>
18
- {{{ end }}}
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}" />
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>
20
+ {{{ end }}}
21
+ {{{ end }}}
22
+ </a>
23
+
19
24
  <div class="d-flex flex-grow-1 flex-column align-items-start position-relative">
20
25
  <a href="{./path}" class="text-decoration-none d-inline-block text-reset text-break text-sm ff-sans stretched-link" component="notifications/item/link">
21
26
  {./bodyShort}
@@ -36,4 +41,4 @@
36
41
  {{{ if !@last }}}
37
42
  <hr class="my-1" />
38
43
  {{{ end }}}
39
- {{{end}}}
44
+ {{{ end }}}