nodebb-theme-persona 14.1.2 → 14.1.4

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-persona",
3
- "version": "14.1.2",
3
+ "version": "14.1.4",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -31,6 +31,14 @@
31
31
  </div>
32
32
  {{{ end }}}
33
33
 
34
+ {{{ if (./hasFollowers == false) }}}
35
+ <div class="alert alert-warning mb-4" id="category-no-followers" data-bs-toggle="dropdown" data-bs-target='[component="topic/watch"] button' aria-hidden="true">
36
+ <i class="fa fa-triangle-exclamation pe-2"></i>
37
+ [[category:no-followers]]
38
+ <a href="#" class="stretched-link"></a>
39
+ </div>
40
+ {{{ end }}}
41
+
34
42
  {{{ if (!topics.length && privileges.topics:create)}}}
35
43
  <hr class="visible-xs" />
36
44
  <div class="alert alert-warning" id="category-no-topics">
@@ -6,9 +6,22 @@
6
6
  </div>
7
7
  <div class="row">
8
8
  <div class="world {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
9
- <form role="search" method="GET" action="{config.relative_path}/search">
9
+ <form class="mb-4" role="search" method="GET" action="{config.relative_path}/search">
10
10
  <input type="hidden" name="in" value="categories" />
11
- <input class="form-control form-control-lg" component="category-search" name="term" type="text" autocomplete="off" placeholder="Find a category..." aria-label="Category Search" />
11
+ <div class="input-group" id="category-options">
12
+ <input class="form-control form-control-lg" component="category-search" name="term" type="text" autocomplete="off" placeholder="Find a category..." aria-label="Category Search" />
13
+ <button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-cog"></i></button>
14
+ <ul class="dropdown-menu dropdown-menu-end">
15
+ <li id="show-categories"><a class="dropdown-item" href="#">
16
+ <i class="fa fa-eye"></i>
17
+ [[world:show-categories]]
18
+ </a></li>
19
+ <li id="hide-categories"><a class="dropdown-item" href="#">
20
+ <i class="fa fa-eye-slash"></i>
21
+ [[world:hide-categories]]
22
+ </a></li>
23
+ </ul>
24
+ </div>
12
25
  </form>
13
26
 
14
27
  <div class="quick-search-container dropdown-menu d-block p-2 hidden">
@@ -16,9 +29,7 @@
16
29
  <div class="quick-search-results-container"></div>
17
30
  </div>
18
31
 
19
- <hr />
20
-
21
- <ul class="categories-list">
32
+ <ul class="categories-list ps-0 hidden">
22
33
  {{{ each categories }}}
23
34
  <!-- IMPORT partials/categories/item.tpl -->
24
35
  {{{ end }}}