nodebb-theme-persona 14.2.0 → 14.2.1
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 +2 -2
- package/package.json +1 -1
- package/templates/world.tpl +39 -18
package/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodebb-theme-persona",
|
|
3
|
-
"version": "14.2.
|
|
3
|
+
"version": "14.2.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nodebb-theme-persona",
|
|
9
|
-
"version": "14.2.
|
|
9
|
+
"version": "14.2.1",
|
|
10
10
|
"license": "BSD-2-Clause",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"pulling": "^2.0.0"
|
package/package.json
CHANGED
package/templates/world.tpl
CHANGED
|
@@ -30,14 +30,36 @@
|
|
|
30
30
|
<div class="col-lg-4 col-sm-12 mt-2 pt-1">
|
|
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">
|
|
34
|
+
<input class="form-control form-control-lg" component="category-search" name="term" type="text" autocomplete="off" placeholder="[[world:category-search]]" />
|
|
35
|
+
<button class="btn btn-outline-secondary dropdown-toggle d-md-none" type="button" data-bs-toggle="dropdown">
|
|
36
|
+
<i class="fa fa-fw fa-list"></i>
|
|
37
|
+
</button>
|
|
38
|
+
<ul class="dropdown-menu">
|
|
39
|
+
{{{ each categories }}}
|
|
40
|
+
<li class="flex-grow-1 align-items-start d-flex gap-2 p-1 mb-2 position-relative">
|
|
41
|
+
<div>
|
|
42
|
+
{buildCategoryIcon(@value, "24px", "rounded-1")}
|
|
43
|
+
</div>
|
|
44
|
+
<div class="d-grid gap-0">
|
|
45
|
+
<div class="title fw-semibold">
|
|
46
|
+
<a class="text-reset stretched-link" href="{{{ if ./link }}}{./link}{{{ else }}}{config.relative_path}/category/{./slug}{{{ end }}}" itemprop="url">{../name}</a>
|
|
47
|
+
</div>
|
|
48
|
+
{{{ if ./descriptionParsed }}}
|
|
49
|
+
<div class="description text-muted text-xs w-100 line-clamp-sm-5">{./descriptionParsed}</div>
|
|
50
|
+
{{{ end }}}
|
|
51
|
+
</div>
|
|
52
|
+
</li>
|
|
53
|
+
{{{ end }}}
|
|
54
|
+
</ul>
|
|
55
|
+
</div>
|
|
34
56
|
</form>
|
|
35
57
|
<div class="quick-search-container dropdown-menu d-block p-2 hidden">
|
|
36
58
|
<div class="text-center loading-indicator"><i class="fa fa-spinner fa-spin"></i></div>
|
|
37
59
|
<div class="quick-search-results-container"></div>
|
|
38
60
|
</div>
|
|
39
61
|
|
|
40
|
-
<ul class="categories-list ps-0 list-unstyled pt-3">
|
|
62
|
+
<ul class="categories-list ps-0 list-unstyled pt-3 d-none d-md-block">
|
|
41
63
|
{{{ each categories }}}
|
|
42
64
|
<!-- IMPORT partials/account/category-item.tpl -->
|
|
43
65
|
{{{ end }}}
|
|
@@ -48,24 +70,23 @@
|
|
|
48
70
|
<div class="col-lg-8 col-sm-12">
|
|
49
71
|
{{{ if posts.length }}}
|
|
50
72
|
<div class="topic-list-header sticky-top btn-toolbar justify-content-end align-items-center px-1 py-2 mb-2 flex-nowrap">
|
|
51
|
-
<
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</ul>
|
|
73
|
+
<div class="btn-group bottom-sheet">
|
|
74
|
+
<button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown">
|
|
75
|
+
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
76
|
+
<span id="sort-label" class="visible-md-inline visible-lg-inline fw-semibold"></span>
|
|
77
|
+
</button>
|
|
78
|
+
<ul class="dropdown-menu" id="sort-options">
|
|
79
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world">[[world:latest]]</a></li>
|
|
80
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=day">[[world:popular-day]]</a></li>
|
|
81
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=week">[[world:popular-week]]</a></li>
|
|
82
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=month">[[world:popular-month]]</a></li>
|
|
83
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=year">[[world:popular-year]]</a></li>
|
|
84
|
+
<li><a class="dropdown-item" href="{config.relative_path}/world?sort=popular&term=alltime">[[world:popular-alltime]]</a></li>
|
|
85
|
+
</ul>
|
|
86
|
+
</div>
|
|
66
87
|
<a class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center fw-semibold" id="world-help" href="#">
|
|
67
88
|
<i class="fa fa-question text-primary"></i>
|
|
68
|
-
[[world:help]]
|
|
89
|
+
<span class="visible-md-inline visible-lg-inline">[[world:help]]</span>
|
|
69
90
|
</a>
|
|
70
91
|
<!-- IMPORT partials/category/tools-dropdown-left.tpl -->
|
|
71
92
|
</div>
|