nodebb-theme-harmony 2.1.36 → 2.1.38
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 +1 -1
- package/templates/category.tpl +23 -20
- package/templates/partials/paginator.tpl +16 -16
package/package.json
CHANGED
package/templates/category.tpl
CHANGED
|
@@ -4,9 +4,27 @@
|
|
|
4
4
|
{{{ end }}}
|
|
5
5
|
|
|
6
6
|
<div class="category-header d-flex flex-column gap-2">
|
|
7
|
-
<div class="d-flex gap-
|
|
8
|
-
{buildCategoryIcon(@value, "
|
|
9
|
-
<
|
|
7
|
+
<div class="d-flex gap-3 align-items-center mb-1 {{{ if config.theme.centerHeaderElements }}}justify-content-center flex-column{{{ end }}}">
|
|
8
|
+
{buildCategoryIcon(@value, "60px", "rounded-1 flex-shrink-0")}
|
|
9
|
+
<div class="d-flex flex-column gap-1">
|
|
10
|
+
<h1 class="tracking-tight fs-3 fw-semibold mb-0">{./name}</h1>
|
|
11
|
+
<div class="d-flex flex-wrap gap-2 {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
|
|
12
|
+
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
13
|
+
<span title="{totalTopicCount}" class="fw-bold">{humanReadableNumber(totalTopicCount)}</span>
|
|
14
|
+
<span class="text-lowercase fw-normal">[[global:topics]]</span>
|
|
15
|
+
</span>
|
|
16
|
+
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
17
|
+
<span title="{totalPostCount}" class="fw-bold">{humanReadableNumber(totalPostCount)}</span>
|
|
18
|
+
<span class="text-lowercase fw-normal">[[global:posts]]</span>
|
|
19
|
+
</span>
|
|
20
|
+
{{{ if !isNumber(cid) }}}
|
|
21
|
+
<a href="{./url}" class="badge text-body border border-gray-300 text-xs" data-ajaxify="false">
|
|
22
|
+
<span class="fw-normal">View Original</span>
|
|
23
|
+
<i class="fa fa-external-link"></i>
|
|
24
|
+
</a>
|
|
25
|
+
{{{ end }}}
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
10
28
|
</div>
|
|
11
29
|
{{{ if ./descriptionParsed }}}
|
|
12
30
|
<div class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}} line-clamp-4 clamp-fade-4">
|
|
@@ -14,27 +32,12 @@
|
|
|
14
32
|
</div>
|
|
15
33
|
{{{ end }}}
|
|
16
34
|
{{{ if ./handleFull }}}
|
|
17
|
-
<p class="text-secondary text-sm fst-italic {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
|
35
|
+
<p class="text-secondary text-sm fst-italic mb-0 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
|
18
36
|
[[category:handle.description, {handleFull}]]
|
|
19
37
|
<a href="#" class="link-secondary" data-action="copy" data-clipboard-text="{handleFull}"><i class="fa fa-fw fa-copy" aria-hidden="true"></i></a>
|
|
20
38
|
</p>
|
|
21
39
|
{{{ end }}}
|
|
22
|
-
|
|
23
|
-
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
24
|
-
<span title="{totalTopicCount}" class="fw-bold">{humanReadableNumber(totalTopicCount)}</span>
|
|
25
|
-
<span class="text-lowercase fw-normal">[[global:topics]]</span>
|
|
26
|
-
</span>
|
|
27
|
-
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
28
|
-
<span title="{totalPostCount}" class="fw-bold">{humanReadableNumber(totalPostCount)}</span>
|
|
29
|
-
<span class="text-lowercase fw-normal">[[global:posts]]</span>
|
|
30
|
-
</span>
|
|
31
|
-
{{{ if !isNumber(cid) }}}
|
|
32
|
-
<a href="{./url}" class="badge text-body border border-gray-300 text-xs" data-ajaxify="false">
|
|
33
|
-
<span class="fw-normal">View Original</span>
|
|
34
|
-
<i class="fa fa-external-link"></i>
|
|
35
|
-
</a>
|
|
36
|
-
{{{ end }}}
|
|
37
|
-
</div>
|
|
40
|
+
|
|
38
41
|
</div>
|
|
39
42
|
|
|
40
43
|
{{{ if widgets.header.length }}}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
<nav component="pagination" class="pagination-container mt-3{{{ if !pagination.pages.length }}} hidden{{{ end }}}" aria-label="[[global:pagination]]">
|
|
2
2
|
<ul class="pagination pagination-sm gap-1 hidden-xs hidden-sm justify-content-center">
|
|
3
|
-
<li class="page-item previous {{{ if !pagination.prev.active }}}
|
|
4
|
-
<a class="page-link rounded fw-secondary px-3" href="?{pagination.prev.qs}" data-page="{pagination.prev.page}" aria-label="[[global:pagination.previouspage]]"><i class="fa fa-chevron-left"></i> </a>
|
|
3
|
+
<li class="page-item previous {{{ if !pagination.prev.active }}} opacity-50 pe-none{{{ end }}}">
|
|
4
|
+
<a class="page-link rounded fw-secondary px-3 border-0" href="?{pagination.prev.qs}" data-page="{pagination.prev.page}" aria-label="[[global:pagination.previouspage]]"><i class="fa fa-chevron-left"></i> </a>
|
|
5
5
|
</li>
|
|
6
6
|
|
|
7
7
|
{{{each pagination.pages}}}
|
|
8
8
|
{{{ if ./separator }}}
|
|
9
9
|
<li component="pagination/select-page" class="page-item page select-page">
|
|
10
|
-
<a class="page-link rounded fw-secondary px-3" href="#" aria-label="[[global:pagination.go-to-page]]"><i class="fa fa-ellipsis-h"></i></a>
|
|
10
|
+
<a class="page-link rounded fw-secondary px-3 border-0" href="#" aria-label="[[global:pagination.go-to-page]]"><i class="fa fa-ellipsis-h"></i></a>
|
|
11
11
|
</li>
|
|
12
12
|
{{{ else }}}
|
|
13
13
|
<li class="page-item page{{{ if ./active }}} active{{{ end }}}" >
|
|
14
|
-
<a class="page-link rounded fw-secondary px-3" href="?{./qs}" data-page="{./page}" aria-label="[[global:pagination.page-x, {./page}]]">{./page}</a>
|
|
14
|
+
<a class="page-link rounded fw-secondary px-3 border-0" href="?{./qs}" data-page="{./page}" aria-label="[[global:pagination.page-x, {./page}]]">{./page}</a>
|
|
15
15
|
</li>
|
|
16
16
|
{{{ end }}}
|
|
17
17
|
{{{end}}}
|
|
18
18
|
|
|
19
|
-
<li class="page-item next {{{ if !pagination.next.active }}}
|
|
20
|
-
<a class="page-link rounded fw-secondary px-3" href="?{pagination.next.qs}" data-page="{pagination.next.page}" aria-label="[[global:pagination.nextpage]]"> <i class="fa fa-chevron-right"></i></a>
|
|
19
|
+
<li class="page-item next {{{ if !pagination.next.active }}} opacity-50 pe-none{{{ end }}}">
|
|
20
|
+
<a class="page-link rounded fw-secondary px-3 border-0" href="?{pagination.next.qs}" data-page="{pagination.next.page}" aria-label="[[global:pagination.nextpage]]"> <i class="fa fa-chevron-right"></i></a>
|
|
21
21
|
</li>
|
|
22
22
|
</ul>
|
|
23
23
|
|
|
24
24
|
{{{ if !template.topic }}}
|
|
25
|
-
<ul class="pagination
|
|
26
|
-
<li class="page-item first{{{ if !pagination.prev.active }}}
|
|
27
|
-
<a class="page-link fw-secondary" href="?{pagination.first.qs}" data-page="1" aria-label="[[global:pagination.firstpage]]"><i class="fa fa-fast-backward"></i> </a>
|
|
25
|
+
<ul class="pagination hidden-md hidden-lg justify-content-center gap-3">
|
|
26
|
+
<li class="page-item first{{{ if !pagination.prev.active }}} opacity-50 pe-none{{{ end }}}">
|
|
27
|
+
<a class="page-link fw-secondary border-0" href="?{pagination.first.qs}" data-page="1" aria-label="[[global:pagination.firstpage]]"><i class="fa fa-fast-backward"></i> </a>
|
|
28
28
|
</li>
|
|
29
29
|
|
|
30
|
-
<li class="page-item previous{{{ if !pagination.prev.active }}}
|
|
31
|
-
<a class="page-link fw-secondary" href="?{pagination.prev.qs}" data-page="{pagination.prev.page}" aria-label="[[global:pagination.previouspage]]"><i class="fa fa-chevron-left"></i> </a>
|
|
30
|
+
<li class="page-item previous{{{ if !pagination.prev.active }}} opacity-50 pe-none{{{ end }}}">
|
|
31
|
+
<a class="page-link fw-secondary border-0" href="?{pagination.prev.qs}" data-page="{pagination.prev.page}" aria-label="[[global:pagination.previouspage]]"><i class="fa fa-chevron-left"></i> </a>
|
|
32
32
|
</li>
|
|
33
33
|
|
|
34
34
|
<li component="pagination/select-page" class="page-item page select-page">
|
|
35
|
-
<a class="page-link fw-secondary" href="#" aria-label="[[global:pagination.go-to-page]]">{pagination.currentPage} / {pagination.pageCount}</a>
|
|
35
|
+
<a class="page-link fw-secondary border-0" href="#" aria-label="[[global:pagination.go-to-page]]">{pagination.currentPage} / {pagination.pageCount}</a>
|
|
36
36
|
</li>
|
|
37
37
|
|
|
38
|
-
<li class="page-item next{{{ if !pagination.next.active }}}
|
|
39
|
-
<a class="page-link fw-secondary" href="?{pagination.next.qs}" data-page="{pagination.next.page}" aria-label="[[global:pagination.nextpage]]"> <i class="fa fa-chevron-right"></i></a>
|
|
38
|
+
<li class="page-item next{{{ if !pagination.next.active }}} opacity-50 pe-none{{{ end }}}">
|
|
39
|
+
<a class="page-link fw-secondary border-0" href="?{pagination.next.qs}" data-page="{pagination.next.page}" aria-label="[[global:pagination.nextpage]]"> <i class="fa fa-chevron-right"></i></a>
|
|
40
40
|
</li>
|
|
41
41
|
|
|
42
|
-
<li class="page-item last{{{ if !pagination.next.active }}}
|
|
43
|
-
<a class="page-link fw-secondary" href="?{pagination.last.qs}" data-page="{pagination.pageCount}" aria-label="[[global:pagination.lastpage]]"><i class="fa fa-fast-forward"></i> </a>
|
|
42
|
+
<li class="page-item last{{{ if !pagination.next.active }}} opacity-50 pe-none{{{ end }}}">
|
|
43
|
+
<a class="page-link fw-secondary border-0" href="?{pagination.last.qs}" data-page="{pagination.pageCount}" aria-label="[[global:pagination.lastpage]]"><i class="fa fa-fast-forward"></i> </a>
|
|
44
44
|
</li>
|
|
45
45
|
</ul>
|
|
46
46
|
{{{ end }}}
|