nodebb-theme-harmony 1.0.0-beta.68 → 1.0.0-beta.69

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": "1.0.0-beta.68",
3
+ "version": "1.0.0-beta.69",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
@@ -0,0 +1,31 @@
1
+ <button type="button" class="btn-ghost-sm d-flex gap-2 align-items-baseline dropdown-toggle" data-bs-toggle="dropdown">
2
+ {{{ if selectedTag }}}
3
+ <span class="d-inline-flex align-items-center gap-1">
4
+ <i class="fa fa-fw fa-tags link-primary"></i>
5
+ <span class="visible-md-inline visible-lg-inline fw-semibold">{selectedTag.label}</span>
6
+ </span>
7
+ {{{ else }}}
8
+ <i class="fa fa-fw fa-tags link-primary"></i>
9
+ <span class="visible-md-inline visible-lg-inline fw-semibold">[[tags:all-tags]]</span>
10
+ {{{ end }}}
11
+ </button>
12
+ <div component="tag/filter/search" class="hidden position-absolute top-0">
13
+ <input type="text" class="form-control form-control-sm" autocomplete="off">
14
+ </div>
15
+ <ul component="tag/filter/list" class="dropdown-menu overflow-auto" role="menu" style="max-height: 500px;">
16
+ <li role="presentation" data-tag="">
17
+ <a class="dropdown-item" role="menu-item" href="#"><i component="tag/select/icon" class="fa fa-fw fa-check {{{if selectedTag }}}invisible{{{ end }}}"></i> [[tags:all-tags]]</a>
18
+ </li>
19
+ {{{ each tagItems }}}
20
+ <li role="presentation" data-tag="{./valueEscaped}">
21
+ <a class="dropdown-item" role="menu-item" href="#">
22
+ <i component="tag/select/icon" class="fa fa-fw fa-check {{{ if !./selected }}}invisible{{{ end }}}"></i>
23
+ <span component="tag-markup">
24
+ <div class="d-inline-flex align-items-center gap-1">
25
+ {./valueEscaped}
26
+ </div>
27
+ </span>
28
+ </a>
29
+ </li>
30
+ {{{ end }}}
31
+ </ul>
@@ -4,6 +4,7 @@
4
4
  <ul component="category/controls" class="navbar-nav me-auto gap-2 align-items-center">
5
5
  {{{ if template.category }}}
6
6
  <!-- IMPORT partials/category/watch.tpl -->
7
+ <!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
7
8
  <!-- IMPORT partials/category/sort.tpl -->
8
9
  {{{ end }}}
9
10
  {{{ if (template.popular || template.top)}}}
@@ -12,6 +13,7 @@
12
13
  {{{ if (template.unread || (template.recent || (template.popular || template.top))) }}}
13
14
  <!-- IMPORT partials/topic-filters.tpl -->
14
15
  <!-- IMPORT partials/category/filter-dropdown-left.tpl -->
16
+ <!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
15
17
  {{{ end }}}
16
18
  {{{ if template.unread }}}
17
19
  <div class="markread btn-group {{{ if !topics.length }}}hidden{{{ end }}}">