nodebb-theme-persona 11.3.31 → 11.3.35
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/less/chats.less +1 -0
- package/less/header.less +5 -0
- package/less/mobile.less +6 -0
- package/package.json +1 -1
- package/public/persona.js +9 -14
- package/templates/account/controversial.tpl +1 -0
- package/templates/partials/account/menu.tpl +1 -0
- package/templates/partials/menu.tpl +1 -1
- package/templates/partials/topic/quickreply.tpl +1 -1
package/less/chats.less
CHANGED
package/less/header.less
CHANGED
package/less/mobile.less
CHANGED
|
@@ -179,10 +179,16 @@
|
|
|
179
179
|
white-space: nowrap;
|
|
180
180
|
text-overflow: ellipsis;
|
|
181
181
|
}
|
|
182
|
+
.teaser-timestamp {
|
|
183
|
+
margin-right: 10px;
|
|
184
|
+
}
|
|
182
185
|
}
|
|
183
186
|
}
|
|
184
187
|
|
|
185
188
|
.menu-section {
|
|
189
|
+
.notification-list-mobile li .text {
|
|
190
|
+
display: block;
|
|
191
|
+
}
|
|
186
192
|
.chat-list, .notification-list-mobile {
|
|
187
193
|
.user-link {
|
|
188
194
|
display: inline;
|
package/package.json
CHANGED
package/public/persona.js
CHANGED
|
@@ -283,15 +283,6 @@ $(document).ready(function () {
|
|
|
283
283
|
});
|
|
284
284
|
|
|
285
285
|
if (chatMenuVisible) {
|
|
286
|
-
chatsSlideout.on('opened', function loadNotifications() {
|
|
287
|
-
require(['notifications'], function (notifications) {
|
|
288
|
-
const notifList = $('#chats-menu [data-section="notifications"] ul');
|
|
289
|
-
notifications.loadNotifications(notifList, function () {
|
|
290
|
-
notifList.find('.deco-none').removeClass('deco-none');
|
|
291
|
-
});
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
|
|
295
286
|
navSlideout.on('beforeopen', function () {
|
|
296
287
|
chatsSlideout.close();
|
|
297
288
|
chatsSlideout.disable();
|
|
@@ -314,11 +305,15 @@ $(document).ready(function () {
|
|
|
314
305
|
}
|
|
315
306
|
});
|
|
316
307
|
|
|
317
|
-
// right slideout chats menu
|
|
308
|
+
// right slideout notifications & chats menu
|
|
318
309
|
|
|
319
|
-
function
|
|
320
|
-
require(['chat'], function (chat) {
|
|
321
|
-
|
|
310
|
+
function loadNotificationsAndChats() {
|
|
311
|
+
require(['notifications', 'chat'], function (notifications, chat) {
|
|
312
|
+
const notifList = $('#chats-menu [data-section="notifications"] ul');
|
|
313
|
+
notifications.loadNotifications(notifList, function () {
|
|
314
|
+
notifList.find('.deco-none').removeClass('deco-none');
|
|
315
|
+
chat.loadChatsDropdown($('#chats-menu .chat-list'));
|
|
316
|
+
});
|
|
322
317
|
});
|
|
323
318
|
}
|
|
324
319
|
|
|
@@ -332,7 +327,7 @@ $(document).ready(function () {
|
|
|
332
327
|
});
|
|
333
328
|
|
|
334
329
|
chatsSlideout
|
|
335
|
-
.on('opened',
|
|
330
|
+
.on('opened', loadNotificationsAndChats)
|
|
336
331
|
.on('beforeopen', function () {
|
|
337
332
|
navSlideout.close().disable();
|
|
338
333
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!-- IMPORT account/posts.tpl -->
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
<li><a href="{config.relative_path}/user/{userslug}/posts">[[global:posts]] <span class="badge badge-default pull-right formatted-number" title="{counts.posts}">{counts.posts}</span></a></li>
|
|
64
64
|
<!-- IF !reputation:disabled -->
|
|
65
65
|
<li><a href="{config.relative_path}/user/{userslug}/best">[[global:best]] <span class="badge badge-default pull-right formatted-number" title="{counts.best}">{counts.best}</span></a></li>
|
|
66
|
+
<li><a href="{config.relative_path}/user/{userslug}/controversial">[[global:controversial]] <span class="badge badge-default pull-right formatted-number" title="{counts.controversial}">{counts.controversial}</span></a></li>
|
|
66
67
|
<!-- ENDIF !reputation:disabled -->
|
|
67
68
|
<li><a href="{config.relative_path}/user/{userslug}/groups">[[global:header.groups]] <span class="badge badge-default pull-right formatted-number" title="{counts.groups}">{counts.groups}</span></a></li>
|
|
68
69
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="navbar-header">
|
|
2
2
|
<button type="button" class="navbar-toggle pull-left" id="mobile-menu">
|
|
3
|
-
<i class="fa fa-lg fa-fw fa-bars unread-count" data-content="{unreadCount.
|
|
3
|
+
<i class="fa fa-lg fa-fw fa-bars unread-count" data-content="{unreadCount.mobileUnread}" data-unread-url="{unreadCount.unreadUrl}"></i>
|
|
4
4
|
</button>
|
|
5
5
|
{{{ if config.loggedIn }}}
|
|
6
6
|
<button type="button" class="navbar-toggle" id="mobile-chats">
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<input type="hidden" name="tid" value="{tid}" />
|
|
13
13
|
<input type="hidden" name="_csrf" value="{config.csrf_token}" />
|
|
14
14
|
<div class="quickreply-message">
|
|
15
|
-
<textarea name="content" component="topic/quickreply/text" class="form-control" rows="5"></textarea>
|
|
15
|
+
<textarea name="content" component="topic/quickreply/text" class="form-control" rows="5" placeholder="[[modules:composer.textarea.placeholder]]"></textarea>
|
|
16
16
|
<div class="imagedrop"><div>[[topic:composer.drag_and_drop_images]]</div></div>
|
|
17
17
|
</div>
|
|
18
18
|
<button type="submit" component="topic/quickreply/button" class="btn btn-primary pull-right">[[topic:post-quick-reply]]</button>
|