nodebb-theme-persona 14.2.4 → 14.2.5

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.4",
3
+ "version": "14.2.5",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -13,9 +13,13 @@
13
13
  {{{ if ./user }}}
14
14
  {buildAvatar(./user, "32px", true)}
15
15
  {{{ else }}}
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>
18
- {{{ end }}}
16
+ {{{ if ./icon }}}
17
+ <div class="avatar avatar-rounded" style="--avatar-size: 32px;"><i class="text-secondary fa {./icon}"></i></div>
18
+ {{{ else }}}
19
+ {{{ if ./image }}}
20
+ <img class="avatar avatar-rounded" style="--avatar-size: 32px;" src="{./image}" />
21
+ {{{ end }}}
22
+ {{{ end }}}
19
23
  {{{ end }}}
20
24
  </a>
21
25