nodebb-theme-harmony 2.2.55 → 2.2.57

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-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.2.55",
3
+ "version": "2.2.57",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nodebb-theme-harmony",
9
- "version": "2.2.55",
9
+ "version": "2.2.57",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@fontsource/inter": "5.2.8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-harmony",
3
- "version": "2.2.55",
3
+ "version": "2.2.57",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -26,6 +26,7 @@
26
26
  {{{ end }}}
27
27
 
28
28
  {{{ if template.world }}}
29
+ {{{ if config.loggedIn }}}
29
30
  <div class="dropdown bottom-sheet">
30
31
  <button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle h-100" data-bs-toggle="dropdown">
31
32
  <i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
@@ -33,6 +34,7 @@
33
34
  </button>
34
35
  <ul class="dropdown-menu" id="sort-options">
35
36
  <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world">[[world:latest]]</a></li>
37
+ <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?local=1">[[world:latest-local]]</a></li>
36
38
  <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?all=1">[[world:latest-all]]</a></li>
37
39
  <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=day">[[world:popular-day]]</a></li>
38
40
  <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=week">[[world:popular-week]]</a></li>
@@ -41,6 +43,7 @@
41
43
  <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=alltime">[[world:popular-alltime]]</a></li>
42
44
  </ul>
43
45
  </div>
46
+ {{{ end }}}
44
47
  <div>
45
48
  <a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold h-100" href="#" id="world-help">
46
49
  <i class="fa fa-fw fa-question text-primary"></i>
@@ -27,7 +27,7 @@
27
27
  <div class="world {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
28
28
  <div class="category">
29
29
  <div class="row flex-row-reverse">
30
- <div class="col-lg-4 col-sm-12 mt-2 pt-1">
30
+ <div class="col-lg-4 col-sm-12 mt-2 pt-1 {{{ if !config.loggedIn }}}invisible{{{ end }}}">
31
31
  <form class="mb-3" role="search" method="GET" action="{config.relative_path}/search">
32
32
  <input type="hidden" name="in" value="categories" />
33
33
  <div class="input-group bottom-sheet">
@@ -69,17 +69,21 @@
69
69
  <div class="col-lg-8 col-sm-12">
70
70
  <!-- IMPORT partials/topic-list-bar.tpl -->
71
71
  <!-- IMPORT partials/topic/quickreply.tpl -->
72
- {{{ if !posts.length }}}
73
- <div>
74
- <h2 class="fs-4 mb-3">
75
- <i class="fa fa-comment-nodes"></i>
72
+
73
+ {{{ if !config.loggedIn }}}
74
+ <div class="alert alert-info alert-dismissible fade show">
75
+ <p class="fw-semibold">
76
76
  [[world:onboard.title]]
77
- </h2>
77
+ </p>
78
78
  <p>[[world:onboard.what]]</p>
79
79
  <p>[[world:onboard.why]]</p>
80
80
  <p>[[world:onboard.how]]</p>
81
+ <a href="{config.relative_path}/register" class="fw-semibold btn btn-sm btn-warning">[[global:register]]</a>
82
+ <a href="{config.relative_path}/login" class="fw-semibold btn btn-sm btn-info">[[global:login]]</a>
83
+ <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
81
84
  </div>
82
85
  {{{ end }}}
86
+
83
87
  <ul class="list-unstyled" id="world-feed">
84
88
  {{{ each posts }}}
85
89
  <!-- IMPORT partials/feed/item.tpl -->