nodebb-theme-persona 13.0.3 → 13.0.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 +1 -1
- package/public/persona.js +1 -1
- package/scss/chats.scss +1 -1
- package/scss/header.scss +1 -1
- package/scss/modules/alerts.scss +1 -0
- package/templates/flags/detail.tpl +10 -10
- package/templates/partials/account/menu.tpl +1 -1
- package/templates/partials/chats/message-window.tpl +1 -1
- package/templates/partials/chats/recent_room.tpl +9 -5
- package/templates/partials/topic/quickreply.tpl +3 -3
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/chats.scss
CHANGED
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
> li {
|
|
136
|
+
height: 80px;
|
|
136
137
|
display: flex;
|
|
137
138
|
position: relative;
|
|
138
139
|
clear: both;
|
|
@@ -257,7 +258,6 @@
|
|
|
257
258
|
.avatar {
|
|
258
259
|
$size: 80px;
|
|
259
260
|
@include user-icon-style($size, calc($size * 0.6), 0);
|
|
260
|
-
background: $gray-200;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
}
|
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 -->
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<button type="button" class="btn-close" aria-hidden="true" aria-label="Close" data-action="close"></button>
|
|
14
14
|
</div>
|
|
15
15
|
<div class="position-relative">
|
|
16
|
-
<div component="chat/messages/scroll-up-alert" class="position-absolute scroll-up-alert alert alert-info hidden w-100" role="button">[[modules:chat.scroll-up-alert]]</div>
|
|
16
|
+
<div component="chat/messages/scroll-up-alert" class="position-absolute scroll-up-alert alert alert-info hidden w-100" role="button" style="z-index: 1;">[[modules:chat.scroll-up-alert]]</div>
|
|
17
17
|
</div>
|
|
18
18
|
<ul class="chat-content">
|
|
19
19
|
<!-- IMPORT partials/chats/messages.tpl -->
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<!-- ENDIF @first -->
|
|
8
8
|
{{{end}}}
|
|
9
9
|
|
|
10
|
+
{{{ if rooms.users.length }}}
|
|
10
11
|
<ul class="members">
|
|
11
12
|
{{{each rooms.users}}}
|
|
12
13
|
<li>
|
|
@@ -14,14 +15,17 @@
|
|
|
14
15
|
</li>
|
|
15
16
|
{{{end}}}
|
|
16
17
|
</ul>
|
|
18
|
+
{{{ end }}}
|
|
17
19
|
|
|
18
|
-
<div class="notification-chat-content">
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
<div class="notification-chat-content flex-grow-1">
|
|
21
|
+
<!-- IF !rooms.lastUser.uid -->
|
|
22
|
+
<div class="p-3 text-center h-100">
|
|
21
23
|
<span>[[modules:chat.no-users-in-room]]</span>
|
|
22
|
-
|
|
24
|
+
</div>
|
|
25
|
+
<!-- ELSE -->
|
|
26
|
+
<strong class="room-name">
|
|
23
27
|
<span component="chat/title"><!-- IF rooms.roomName -->{rooms.roomName}<!-- ELSE -->{rooms.usernames}<!-- ENDIF rooms.roomName --></span>
|
|
24
|
-
<!-- ENDIF !rooms.lastUser.uid -->
|
|
25
28
|
</strong>
|
|
29
|
+
<!-- ENDIF !rooms.lastUser.uid -->
|
|
26
30
|
</div>
|
|
27
31
|
</li>
|
|
@@ -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">
|