nodebb-theme-harmony 2.2.12 → 2.2.14
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
|
@@ -97,18 +97,18 @@
|
|
|
97
97
|
|
|
98
98
|
<h6 class="fw-bold">[[user:browsing]]</h6>
|
|
99
99
|
|
|
100
|
-
<div class="
|
|
101
|
-
<
|
|
102
|
-
|
|
100
|
+
<div class="mb-3">
|
|
101
|
+
<div class="d-flex gap-4 align-items-center justify-content-between mb-3">
|
|
102
|
+
<label class="form-label text-sm mb-0" for="unreadCutoff">[[user:unread.cutoff, {maximumUnreadCutoff}]]</label>
|
|
103
|
+
<input id="unreadCutoff" value="{settings.unreadCutoff}" type="number" class="form-control form-control-sm text-end" data-property="unreadCutoff" min="1" max="{maximumUnreadCutoff}" style="max-width: 64px;">
|
|
104
|
+
</div>
|
|
105
|
+
<p class="form-text text-xs">[[user:unread.cutoff-help]]</p>
|
|
103
106
|
</div>
|
|
104
107
|
|
|
105
|
-
{{{ if inTopicSearchAvailable }}}
|
|
106
108
|
<div class="form-check form-switch">
|
|
107
|
-
<input class="form-check-input" type="checkbox" role="switch" id="
|
|
108
|
-
<label class="form-check-label text-sm" for="
|
|
109
|
+
<input class="form-check-input" type="checkbox" role="switch" id="openOutgoingLinksInNewTab" data-property="openOutgoingLinksInNewTab" {{{ if settings.openOutgoingLinksInNewTab }}}checked{{{ end }}}/>
|
|
110
|
+
<label class="form-check-label text-sm" for="openOutgoingLinksInNewTab">[[user:open-links-in-new-tab]]</label>
|
|
109
111
|
</div>
|
|
110
|
-
<p class="form-text text-xs">[[user:topic-search-help]]</p>
|
|
111
|
-
{{{ end }}}
|
|
112
112
|
|
|
113
113
|
<div class="form-check form-switch">
|
|
114
114
|
<input class="form-check-input" type="checkbox" role="switch" id="updateUrlWithPostIndex" data-property="updateUrlWithPostIndex" {{{ if settings.updateUrlWithPostIndex }}}checked{{{ end }}}/>
|
|
@@ -120,6 +120,14 @@
|
|
|
120
120
|
<label class="form-check-label text-sm" for="scrollToMyPost">[[user:scroll-to-my-post]]</label>
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
|
+
{{{ if inTopicSearchAvailable }}}
|
|
124
|
+
<div class="form-check form-switch">
|
|
125
|
+
<input class="form-check-input" type="checkbox" role="switch" id="topicSearchEnabled" data-property="topicSearchEnabled" {{{ if settings.topicSearchEnabled }}}checked{{{ end }}}/>
|
|
126
|
+
<label class="form-check-label text-sm" for="topicSearchEnabled">[[user:enable-topic-searching]]</label>
|
|
127
|
+
</div>
|
|
128
|
+
<p class="form-text text-xs">[[user:topic-search-help]]</p>
|
|
129
|
+
{{{ end }}}
|
|
130
|
+
|
|
123
131
|
<hr/>
|
|
124
132
|
|
|
125
133
|
<h6 class="fw-bold">[[global:pagination]]</h6>
|
|
@@ -128,13 +136,13 @@
|
|
|
128
136
|
<input type="checkbox" role="switch" id="usePagination" class="form-check-input" data-property="usePagination" {{{ if settings.usePagination }}}checked{{{ end }}}>
|
|
129
137
|
<label class="form-check-label text-sm" for="usePagination">[[user:paginate-description]]</label>
|
|
130
138
|
</div>
|
|
131
|
-
<div class="mb-2">
|
|
132
|
-
<label class="form-label text-sm" for="topicsPerPage">[[user:topics-per-page]] ([[user:max-items-per-page, {maxTopicsPerPage}]])</label>
|
|
133
|
-
<input type="
|
|
139
|
+
<div class="d-flex gap-4 align-items-center justify-content-between mb-2">
|
|
140
|
+
<label class="form-label text-sm text-nowrap mb-0" for="topicsPerPage">[[user:topics-per-page]] ([[user:max-items-per-page, {maxTopicsPerPage}]])</label>
|
|
141
|
+
<input type="number" class="form-control form-control-sm text-end" id="topicsPerPage" data-property="topicsPerPage" value="{settings.topicsPerPage}" min="1" max="{maxTopicsPerPage}" style="max-width: 64px;">
|
|
134
142
|
</div>
|
|
135
|
-
<div>
|
|
136
|
-
<label class="form-label text-sm" for="postsPerPage">[[user:posts-per-page]] ([[user:max-items-per-page, {maxPostsPerPage}]])</label>
|
|
137
|
-
<input type="
|
|
143
|
+
<div class="d-flex gap-4 align-items-center justify-content-between">
|
|
144
|
+
<label class="form-label text-sm text-nowrap mb-0" for="postsPerPage">[[user:posts-per-page]] ([[user:max-items-per-page, {maxPostsPerPage}]])</label>
|
|
145
|
+
<input type="number" class="form-control form-control-sm text-end" id="postsPerPage" data-property="postsPerPage" value="{settings.postsPerPage}" min="1" max="{maxPostsPerPage}" style="max-width: 64px;">
|
|
138
146
|
</div>
|
|
139
147
|
|
|
140
148
|
<hr/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="{{{ if config.theme.stickyToolbar }}}sticky-tools{{{ end }}} mb-3" style="top: {{{ if (config.theme.topMobilebar && !config.theme.autohideBottombar) }}}var(--panel-offset){{{ else }}}0{{{ end }}};">
|
|
2
2
|
<nav class="topic-list-header d-flex flex-nowrap my-2 p-0 border-0 rounded">
|
|
3
|
-
<div class="d-flex flex-row p-2 text-bg-light gap-1 border rounded w-100">
|
|
4
|
-
<div component="category/controls" class="d-flex me-auto mb-0 gap-2
|
|
3
|
+
<div class="d-flex flex-row p-2 text-bg-light gap-1 border rounded w-100 align-items-center">
|
|
4
|
+
<div component="category/controls" class="d-flex flex-wrap align-items-stretch me-auto mb-0 gap-2">
|
|
5
5
|
{{{ if template.category }}}
|
|
6
6
|
<!-- IMPORT partials/category/watch.tpl -->
|
|
7
7
|
<!-- IMPORT partials/tags/filter-dropdown-left.tpl -->
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<div class="dropdown bottom-sheet{{{ if !filters.length }}} hidden{{{ end }}}">
|
|
2
|
-
<button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
3
|
-
<i class="fa fa-fw fa-filter text-primary"></i>
|
|
4
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">{selectedFilter.name}</span>
|
|
5
|
-
</button>
|
|
6
|
-
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
7
|
-
{{{each filters}}}
|
|
8
|
-
<li role="presentation" class="category {{{if filters.selected}}}selected{{{end}}}">
|
|
9
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{filters.url}">
|
|
10
|
-
<div class="flex-grow-1">{filters.name}</div>
|
|
11
|
-
<i class="flex-shrink-0 fa fa-fw {{{ if filters.selected }}}fa-check{{{ end }}}"></i>
|
|
12
|
-
</a>
|
|
13
|
-
</li>
|
|
14
|
-
{{{end}}}
|
|
15
|
-
</ul>
|
|
16
|
-
</div>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<div class="dropdown bottom-sheet {{{ if !terms.length }}}hidden{{{ end }}}">
|
|
2
|
-
<button type="button" class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
3
|
-
<i class="fa fa-fw fa-clock text-primary"></i>
|
|
4
|
-
<span class="visible-md-inline visible-lg-inline fw-semibold">{selectedTerm.name}</span>
|
|
5
|
-
</button>
|
|
6
|
-
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
7
|
-
{{{each terms}}}
|
|
8
|
-
<li role="presentation" class="category">
|
|
9
|
-
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem" href="{config.relative_path}/{terms.url}">
|
|
10
|
-
<div class="flex-grow-1">{terms.name}</div>
|
|
11
|
-
<i class="flex-shrink-0 fa fa-fw {{{ if terms.selected }}}fa-check{{{ end }}}"></i>
|
|
12
|
-
</a>
|
|
13
|
-
</li>
|
|
14
|
-
{{{end}}}
|
|
15
|
-
</ul>
|
|
16
|
-
</div>
|