nodebb-theme-persona 14.2.35 → 14.2.37

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.35",
3
+ "version": "14.2.37",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -3,18 +3,27 @@
3
3
  <div class="profile row">
4
4
  <h1 class="fullname text-center fs-2 text-secondary fw-light">{{{ if fullname }}}{fullname}{{{ else }}}{username}{{{ end }}}</h1>
5
5
  <div class="d-flex gap-2 justify-content-center mb-2" component="user/badges"></div>
6
- <h2 class="username text-center fs-5"><!-- IF !banned -->@{username}<!-- ELSE -->[[user:banned]]<!-- ENDIF !banned --></h2>
7
- <!-- IF isAdminOrGlobalModeratorOrModerator -->
8
- <!-- IF banned -->
9
- <div class="text-center">
10
- <!-- IF banned_until -->
11
- [[user:info.banned-until, {isoTimeToLocaleString(./banned_until_readable, config.userLang)}]]
12
- <!-- ELSE -->
13
- [[user:info.banned-permanently]]
14
- <!-- ENDIF banned_until -->
15
- </div>
16
- <!-- ENDIF banned -->
17
- <!-- ENDIF isAdminOrGlobalModeratorOrModerator -->
6
+ <h2 class="username text-center fs-5">@{username}</h2>
7
+ {{{ if isAdminOrGlobalModeratorOrModerator }}}
8
+ {{{ if banned }}}
9
+ <div class="text-center">
10
+ {{{ if banned_until }}}
11
+ [[user:info.banned-until, {isoTimeToLocaleString(./banned_until_readable, config.userLang)}]]
12
+ {{{ else }}}
13
+ [[user:info.banned-permanently]]
14
+ {{{ end }}}
15
+ </div>
16
+ {{{ end }}}
17
+ {{{ if muted }}}
18
+ <div class="text-center">
19
+ {{{ if mutedUntil }}}
20
+ [[user:info.muted-until, {isoTimeToLocaleString(./muted_until_readable, config.userLang)}]]
21
+ {{{ else }}}
22
+ [[user:info.muted-permanently]]
23
+ {{{ end }}}
24
+ </div>
25
+ {{{ end }}}
26
+ {{{ end }}}
18
27
 
19
28
  {{{ if selectedGroup.length }}}
20
29
  <div class="d-flex gap-1 flex-wrap justify-content-center mb-3">
@@ -11,5 +11,7 @@
11
11
  <a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=flagged">[[users:most-flags]]</a>
12
12
 
13
13
  <a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=banned">[[user:banned]]</a>
14
+
15
+ <a class="btn btn-ghost btn-sm ff-secondary" href="{config.relative_path}/users?section=muted">[[user:muted]]</a>
14
16
  {{{ end }}}
15
17
  </div>