nodebb-theme-persona 13.0.3 → 13.0.4

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.0.3",
3
+ "version": "13.0.4",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/public/persona.js CHANGED
@@ -44,7 +44,7 @@ $(document).ready(function () {
44
44
  return;
45
45
  }
46
46
  lastBSEnv = env;
47
- var navbarEl = $('.navbar-fixed-top');
47
+ var navbarEl = $('[component="navbar"]');
48
48
  navbarEl.autoHidingNavbar('destroy').removeData('plugin_autoHidingNavbar');
49
49
  navbarEl.css('top', '');
50
50
 
package/scss/header.scss CHANGED
@@ -59,7 +59,7 @@
59
59
  color: $text-muted;
60
60
 
61
61
  &:after {
62
- font-family: "Font Awesome 5 Free";
62
+ font-family: "FontAwesome";
63
63
  content: fa-content($fa-var-circle);
64
64
  font-weight: 400;
65
65
  padding: 4px 1rem;
@@ -12,6 +12,7 @@
12
12
 
13
13
  &::before {
14
14
  transition: inherit;
15
+ content: ' ';
15
16
  display: block;
16
17
  position: absolute;
17
18
  z-index: 0;
@@ -147,23 +147,23 @@
147
147
  <span class="caret"></span>
148
148
  </button>
149
149
  <ul class="dropdown-menu">
150
- <li class="dropdown-item"><a href="{config.relative_path}/uid/{target.uid}">[[flags:view-profile]]</a></li>
150
+ <li><a class="dropdown-item" href="{config.relative_path}/uid/{target.uid}">[[flags:view-profile]]</a></li>
151
151
  {{{ if !config.disableChat }}}
152
- <li class="dropdown-item"><a href="#" data-action="chat">[[flags:start-new-chat]]</a></li>
152
+ <li><a class="dropdown-item" href="#" data-action="chat">[[flags:start-new-chat]]</a></li>
153
153
  {{{ end }}}
154
- <li><hr class="dropdown-divider"></li>
154
+ <li class="dropdown-divider"></li>
155
155
  {{{ if privileges.ban }}}
156
- <li class="dropdown-item" class="{{{ if target.user.banned }}}hidden{{{ end }}}"><a href="#" data-action="ban">[[user:ban_account]]</a></li>
157
- <li class="dropdown-item" class="{{{ if !target.user.banned }}}hidden{{{ end }}}"><a href="#" data-action="unban">[[user:unban_account]]</a></li>
156
+ <li class="{{{ if target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="ban">[[user:ban_account]]</a></li>
157
+ <li class="{{{ if !target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="unban">[[user:unban_account]]</a></li>
158
158
  {{{ end }}}
159
159
  {{{ if privileges.mute}}}
160
- <li class="dropdown-item" class="{{{ if target.user.muted }}}hidden{{{ end }}}"><a href="#" data-action="mute">[[user:mute_account]]</a></li>
161
- <li class="dropdown-item" class="{{{ if !target.user.muted }}}hidden{{{ end }}}"><a href="#" data-action="unmute">[[user:unmute_account]]</a></li>
160
+ <li class="{{{ if target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="mute">[[user:mute_account]]</a></li>
161
+ <li class="{{{ if !target.user.muted }}}hidden{{{ end }}}"><a class="dropdown-item" href="#" data-action="unmute">[[user:unmute_account]]</a></li>
162
162
  {{{ end }}}
163
163
  {{{ if privileges.admin:users }}}
164
- <li class="dropdown-item"><a href="#" data-action="delete-account">[[user:delete_account_as_admin]]</a></li>
165
- <li class="dropdown-item"><a href="#" data-action="delete-content">[[user:delete_content]]</a></li>
166
- <li class="dropdown-item"><a href="#" data-action="delete-all">[[user:delete_all]]</a></li>
164
+ <li><a class="dropdown-item" href="#" data-action="delete-account">[[user:delete_account_as_admin]]</a></li>
165
+ <li><a class="dropdown-item" href="#" data-action="delete-content">[[user:delete_content]]</a></li>
166
+ <li><a class="dropdown-item" href="#" data-action="delete-all">[[user:delete_all]]</a></li>
167
167
  {{{ end }}}
168
168
  </ul>
169
169
  </div>
@@ -2,7 +2,7 @@
2
2
  <button type="button" class="persona-fab dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
3
3
  <i class="fa fa-ellipsis-v"></i>
4
4
  </button>
5
- <ul class="dropdown-menu dropdown-menu-end">
5
+ <ul class="dropdown-menu dropdown-menu-end account-sub-links">
6
6
  <!-- IF loggedIn -->
7
7
  <!-- IF !isSelf -->
8
8
  <!-- IF !banned -->
@@ -1,11 +1,11 @@
1
1
  <!-- IF privileges.topics:reply -->
2
2
  <div component="topic/quickreply/container" class="clearfix quick-reply">
3
3
  <div class="icon float-start hidden-xs">
4
- <a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
4
+ <a data-uid="{loggedInUser.uid}" href="{{{ if loggedInUser.userslug }}}{config.relative_path}/user/{loggedInUser.userslug}{{{ else }}}#{{{ end }}}">
5
5
  {buildAvatar(loggedInUser, "48px", true, "", "user/picture")}
6
- <!-- IF loggedInUser.status -->
6
+ {{{ if loggedInUser.status }}}
7
7
  <i component="user/status" class="fa fa-circle status {loggedInUser.status}" title="[[global:{loggedInUser.status}]]"></i>
8
- <!-- ENDIF loggedInUser.status -->
8
+ {{{ end }}}
9
9
  </a>
10
10
  </div>
11
11
  <form method="post" action="{config.relative_path}/compose">