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 CHANGED
@@ -245,6 +245,7 @@
245
245
  .teaser-timestamp {
246
246
  font-size: 10px;
247
247
  margin-top: 10px;
248
+ margin-right: 10px;
248
249
  }
249
250
 
250
251
  a {
package/less/header.less CHANGED
@@ -31,6 +31,11 @@
31
31
  display: block;
32
32
  min-height: 32px;
33
33
  }
34
+ .relTime {
35
+ font-size: 10px;
36
+ margin-top: 10px;
37
+ margin-right: 10px;
38
+ }
34
39
  }
35
40
 
36
41
  .mark-read {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "11.3.31",
3
+ "version": "11.3.35",
4
4
  "nbbpm": {
5
5
  "compatibility": "^1.18.0"
6
6
  },
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 loadChats() {
320
- require(['chat'], function (chat) {
321
- chat.loadChatsDropdown($('#chats-menu .chat-list'));
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', loadChats)
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.topic}"></i>
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>