nodebb-theme-persona 13.3.8 → 13.3.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-persona",
3
- "version": "13.3.8",
3
+ "version": "13.3.10",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.5.0"
6
6
  },
@@ -13,21 +13,21 @@
13
13
  </div>
14
14
  </div>
15
15
  <ul class="list-group mb-3">
16
- <!-- IF allowProfilePicture -->
17
- <a component="profile/change/picture" href="#" class="list-group-item">[[user:change-picture]]</a>
18
- <!-- ENDIF allowProfilePicture -->
19
- <!-- IF !username:disableEdit -->
20
- <a href="{config.relative_path}/user/{userslug}/edit/username" class="list-group-item">[[user:change-username]]</a>
21
- <!-- ENDIF !username:disableEdit -->
22
- <!-- IF !email:disableEdit -->
23
- <a href="{config.relative_path}/user/{userslug}/edit/email" class="list-group-item">[[user:change-email]]</a>
24
- <!-- ENDIF !email:disableEdit -->
25
- <!-- IF canChangePassword -->
26
- <a href="{config.relative_path}/user/{userslug}/edit/password" class="list-group-item">[[user:change-password]]</a>
27
- <!-- ENDIF canChangePassword -->
28
- {{{each editButtons}}}
29
- <a href="{config.relative_path}{editButtons.link}" class="list-group-item">{editButtons.text}</a>
30
- {{{end}}}
16
+ {{{ if allowProfilePicture }}}
17
+ <li class="list-group-item"><a component="profile/change/picture" href="#" class="text-decoration-none text-reset">[[user:change-picture]]</a></li>
18
+ {{{ end }}}
19
+ {{{ if !username:disableEdit }}}
20
+ <li class="list-group-item"><a href="{config.relative_path}/user/{userslug}/edit/username" class="text-decoration-none text-reset">[[user:change-username]]</a></li>
21
+ {{{ end }}}
22
+ {{{ if !email:disableEdit }}}
23
+ <li class="list-group-item"><a href="{config.relative_path}/user/{userslug}/edit/email" class="text-decoration-none text-reset">[[user:change-email]]</a></li>
24
+ {{{ end }}}
25
+ {{{ if canChangePassword }}}
26
+ <li class="list-group-item"><a href="{config.relative_path}/user/{userslug}/edit/password" class="text-decoration-none text-reset">[[user:change-password]]</a></li>
27
+ {{{ end }}}
28
+ {{{ each editButtons }}}
29
+ <li class="list-group-item"><a href="{config.relative_path}{./link}" class="text-decoration-none text-reset">{./text}</a></li>
30
+ {{{ end }}}
31
31
  </ul>
32
32
 
33
33
  <!-- IF config.requireEmailConfirmation -->
@@ -73,18 +73,21 @@
73
73
  <div class="mb-2">
74
74
  <label class="form-label fw-bold" for="groupTitle">[[user:grouptitle]]</label>
75
75
 
76
- <select class="form-select" id="groupTitle" name="groupTitle" <!-- IF allowMultipleBadges --> size="{groupSelectSize}" multiple<!-- ENDIF allowMultipleBadges -->>
77
- <option value="">[[user:no-group-title]]</option>
78
- {{{each groups}}}
79
- <!-- IF groups.userTitleEnabled -->
80
- <option value="{groups.displayName}" <!-- IF groups.selected -->selected<!-- ENDIF groups.selected -->>{groups.userTitle}</option>
81
- <!-- ENDIF groups.userTitleEnabled -->
82
- {{{end}}}
83
- </select>
84
- <!-- IF allowMultipleBadges -->
85
- <span>[[user:group-order-help]]</span>
86
- <i role="button" component="group/order/up" class="fa fa-chevron-up"></i> <i role="button" component="group/order/down" class="fa fa-chevron-down"></i>
87
- <!-- ENDIF -->
76
+ <div class="d-flex flex-column gap-2" component="group/badge/list">
77
+ {{{ each groups }}}
78
+ <div component="group/badge/item" class="d-flex gap-2 justify-content-between align-items-center" data-value="{./displayName}" data-selected="{./selected}">
79
+ <!-- IMPORT partials/groups/badge.tpl -->
80
+ <div class="d-flex gap-1">
81
+ <button component="group/toggle/hide" type="button" class="btn-ghost-sm {{{ if !./selected }}}hidden{{{ end }}}" title="[[user:hide-group-title]]"><i class="fa fa-fw fa-eye"></i></button>
82
+ <button component="group/toggle/show" type="button" class="btn-ghost-sm {{{ if ./selected }}}hidden{{{ end }}}" title="[[user:show-group-title]]"><i class="fa fa-fw fa-eye-slash"></i></button>
83
+ {{{ if allowMultipleBadges }}}
84
+ <button component="group/order/up" type="button" class="btn-ghost-sm" title="[[user:order-group-up]]"><i class="fa fa-fw fa-chevron-up"></i></button>
85
+ <button component="group/order/down" type="button" class="btn-ghost-sm" title="[[user:order-group-down]]"><i class="fa fa-fw fa-chevron-down"></i></button>
86
+ {{{ end }}}
87
+ </div>
88
+ </div>
89
+ {{{ end }}}
90
+ </div>
88
91
  </div>
89
92
 
90
93
  <!-- IF allowAboutMe -->
@@ -27,7 +27,7 @@
27
27
  </select>
28
28
  <p class="form-text">[[user:homepage-description]]</p>
29
29
  </div>
30
- <div id="homePageCustom" class="mb-2" style="display: none;">
30
+ <div id="homePageCustomContainer" class="mb-2" style="display: none;">
31
31
  <label for="homePageCustom">[[user:custom-route]]</label>
32
32
  <input type="text" class="form-control" data-property="homePageCustom" id="homePageCustom" value="{settings.homePageRoute}"/>
33
33
  <p class="form-text">[[user:custom-route-help]]</p>