nodebb-theme-harmony 2.2.2 → 2.2.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-harmony",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "nbbpm": {
5
5
  "compatibility": "^4.0.0"
6
6
  },
@@ -11,7 +11,8 @@
11
11
  "url": "https://github.com/NodeBB/nodebb-theme-harmony"
12
12
  },
13
13
  "scripts": {
14
- "lint": "eslint ."
14
+ "lint": "eslint .",
15
+ "publish": "npm version $npm_config_release && git push && git push --tags && npm publish"
15
16
  },
16
17
  "keywords": [
17
18
  "nodebb",
@@ -25,10 +25,6 @@
25
25
  <!-- IMPORT partials/tags/watch.tpl -->
26
26
  {{{ end }}}
27
27
 
28
- {{{ if (!feeds:disableRSS && rssFeedUrl) }}}
29
- <a class="btn btn-ghost btn-sm d-none d-lg-flex align-items-center align-self-stretch" target="_blank" href="{rssFeedUrl}" itemprop="item" title="[[global:rss-feed]]"><i class="fa fa-rss text-primary"></i></a>
30
- {{{ end }}}
31
-
32
28
  {{{ if template.world }}}
33
29
  <a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" href="{config.relative_path}/world">
34
30
  <i class="fa fa-clock text-primary"></i>
@@ -38,12 +34,12 @@
38
34
  <i class="fa fa-fw fa-fire text-primary"></i>
39
35
  <span class="visible-md-inline visible-lg-inline fw-semibold">[[world:popular]]</span>
40
36
  </button>
41
- <ul class="dropdown-menu">
42
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=day">Day</a></li>
43
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=week">Week</a></li>
44
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=month">Month</a></li>
45
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=year">Year</a></li>
46
- <li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=alltime">All time</a></li>
37
+ <ul class="dropdown-menu p-1">
38
+ <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=day">Day</a></li>
39
+ <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=week">Week</a></li>
40
+ <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=month">Month</a></li>
41
+ <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=year">Year</a></li>
42
+ <li><a class="dropdown-item rounded-1" href="{config.relative_path}/world?sort=popular&term=alltime">All time</a></li>
47
43
  </ul>
48
44
  <a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" href="#" id="world-help">
49
45
  <i class="fa fa-question text-primary"></i>
@@ -53,6 +49,10 @@
53
49
 
54
50
  <!-- IMPORT partials/category/tools-dropdown-left.tpl -->
55
51
 
52
+ {{{ if (!feeds:disableRSS && rssFeedUrl) }}}
53
+ <a class="btn btn-ghost btn-sm d-none d-lg-flex align-items-center align-self-stretch" target="_blank" href="{rssFeedUrl}" itemprop="item" title="[[global:rss-feed]]"><i class="fa fa-rss text-primary"></i></a>
54
+ {{{ end }}}
55
+
56
56
  <a href="{{{ if (template.category || template.world) }}}{url}{{{ else }}}{config.relative_path}/{selectedFilter.url}{querystring}{{{ end }}}" class="btn btn-secondary fw-semibold position-absolute top-100 translate-middle-x start-50 mt-1 hide" style="--bs-btn-padding-y: .25rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .75rem;" id="new-topics-alert">
57
57
  <i class="fa fa-fw fa-arrow-up"></i> [[recent:load-new-posts]]
58
58
  </a>