nodebb-theme-harmony 2.0.29 → 2.0.31

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-harmony",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
package/public/harmony.js CHANGED
@@ -122,6 +122,7 @@ $(document).ready(function () {
122
122
  setTimeout(enableAutohide, 250);
123
123
  });
124
124
  hooks.on('action:ajaxify.end', function () {
125
+ bottomBar.removeClass('hidden');
125
126
  const { template } = ajaxify.data;
126
127
  stickyTools = (template.category || template.topic) ? $('.sticky-tools') : null;
127
128
  $window.off('scroll', delayedScroll);
@@ -9,10 +9,10 @@
9
9
  <div class="mb-2 mb-md-0">
10
10
  <div class="text-sm d-flex flex-wrap align-items-center gap-2">
11
11
  [[topic:sort-by]]
12
- <div class="d-flex gap-2">
13
- <a href="?sort=alpha" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if (sort == "alpha") }}}active{{{ end }}}">[[groups:details.group-name]]</a>
14
- <a href="?sort=count" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if (sort == "count") }}}active{{{ end }}}">[[groups:details.member-count]]</a>
15
- <a href="?sort=date" class="btn btn-ghost btn-sm ff-secondary fw-semibold {{{ if (sort == "date") }}}active{{{ end }}}">[[groups:details.creation-date]]</a>
12
+ <div class="d-flex flex-wrap gap-2">
13
+ <a href="?sort=alpha" class="btn btn-ghost btn-sm ff-secondary fw-semibold text-nowrap {{{ if (sort == "alpha") }}}active{{{ end }}}">[[groups:details.group-name]]</a>
14
+ <a href="?sort=count" class="btn btn-ghost btn-sm ff-secondary fw-semibold text-nowrap {{{ if (sort == "count") }}}active{{{ end }}}">[[groups:details.member-count]]</a>
15
+ <a href="?sort=date" class="btn btn-ghost btn-sm ff-secondary fw-semibold text-nowrap {{{ if (sort == "date") }}}active{{{ end }}}">[[groups:details.creation-date]]</a>
16
16
  </div>
17
17
  </div>
18
18
  </div>
@@ -1,3 +1,31 @@
1
+ {{{ if ./items.length }}}
2
+ <li component="topic/event" class="timeline-event text-muted d-flex gap-2 pt-4">
3
+ <div class="d-flex flex-column">
4
+ <div class="d-flex text-start align-self-start align-items-center">
5
+ <div class="timeline-badge">
6
+ <i class="fa {{{ if ./icon }}}{./icon}{{{ else }}}fa-circle{{{ end }}} small"></i>
7
+ </div>
8
+ <button class="btn btn-sm btn-ghost" type="button" data-bs-toggle="collapse" data-bs-target="#event-collapse-{./id}" aria-expanded="false" aria-controls="collapseExample">
9
+ [[topic:announcers-x, {./items.length}]]
10
+ </button>
11
+ </div>
12
+ <div class="collapse align-self-start ps-5" id="event-collapse-{./id}">
13
+ <div component="topic/event/items">
14
+ {{{ each ./items }}}
15
+ <div class="d-flex gap-2 pt-2" data-topic-event-id="{./id}" data-topic-event-type="{./type}">
16
+ <span class="timeline-text small d-flex align-items-center gap-1 flex-wrap">
17
+ {./text}
18
+ </span>
19
+ {{{ if (privileges.isAdminOrMod && ./id) }}}
20
+ <span component="topic/event/delete" data-topic-event-id="{./id}" data-topic-event-type="{./type}" class="timeline-text pointer" title="[[topic:delete-event]]"><i class="fa fa-trash"></i></span>
21
+ {{{ end }}}
22
+ </div>
23
+ {{{ end }}}
24
+ </div>
25
+ </div>
26
+ </div>
27
+ </li>
28
+ {{{ else }}}
1
29
  <li component="topic/event" class="timeline-event text-muted d-flex gap-2 pt-4" data-topic-event-id="{./id}" data-topic-event-type="{./type}">
2
30
  <div class="timeline-badge">
3
31
  <i class="fa {{{ if ./icon }}}{./icon}{{{ else }}}fa-circle{{{ end }}} small"></i>
@@ -9,4 +37,5 @@
9
37
  <span component="topic/event/delete" data-topic-event-id="{./id}" data-topic-event-type="{./type}" class="timeline-text pointer" title="[[topic:delete-event]]"><i class="fa fa-trash"></i></span>
10
38
  {{{ end }}}
11
39
  </li>
40
+ {{{ end }}}
12
41