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
package/public/persona.js
CHANGED
|
@@ -44,7 +44,7 @@ $(document).ready(function () {
|
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
lastBSEnv = env;
|
|
47
|
-
var navbarEl = $('
|
|
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
package/scss/modules/alerts.scss
CHANGED
|
@@ -147,23 +147,23 @@
|
|
|
147
147
|
<span class="caret"></span>
|
|
148
148
|
</button>
|
|
149
149
|
<ul class="dropdown-menu">
|
|
150
|
-
<li class="dropdown-item"
|
|
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"
|
|
152
|
+
<li><a class="dropdown-item" href="#" data-action="chat">[[flags:start-new-chat]]</a></li>
|
|
153
153
|
{{{ end }}}
|
|
154
|
-
<li
|
|
154
|
+
<li class="dropdown-divider"></li>
|
|
155
155
|
{{{ if privileges.ban }}}
|
|
156
|
-
<li class="
|
|
157
|
-
<li class="
|
|
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="
|
|
161
|
-
<li class="
|
|
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"
|
|
165
|
-
<li class="dropdown-item"
|
|
166
|
-
<li class="dropdown-item"
|
|
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="
|
|
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
|
-
|
|
6
|
+
{{{ if loggedInUser.status }}}
|
|
7
7
|
<i component="user/status" class="fa fa-circle status {loggedInUser.status}" title="[[global:{loggedInUser.status}]]"></i>
|
|
8
|
-
|
|
8
|
+
{{{ end }}}
|
|
9
9
|
</a>
|
|
10
10
|
</div>
|
|
11
11
|
<form method="post" action="{config.relative_path}/compose">
|