nodebb-theme-harmony 1.2.21 → 1.2.23
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,7 +1,7 @@
|
|
|
1
1
|
<div class="btn-group bottom-sheet" component="thread/sort">
|
|
2
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
2
|
+
<button class="btn-ghost-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:topic-sort-option, {sortOptionLabel}]]">
|
|
3
3
|
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
4
|
-
<span class="
|
|
4
|
+
<span class="d-none d-md-inline fw-semibold">{sortOptionLabel}</span>
|
|
5
5
|
</button>
|
|
6
6
|
|
|
7
7
|
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{{{ if config.loggedIn }}}
|
|
2
2
|
<div class="btn-group bottom-sheet" component="topic/watch">
|
|
3
|
-
<button class="btn-ghost-sm ff-secondary
|
|
4
|
-
<span component="category/watching/menu" {{{ if !./isWatched }}}
|
|
3
|
+
<button class="btn-ghost-sm ff-secondary dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
|
+
<span component="category/watching/menu" class="d-flex gap-2 align-items-center {{{ if !./isWatched }}} hidden{{{ end }}}"><i class="fa fa-fw fa-bell-o text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:watching]]</span></span>
|
|
5
5
|
|
|
6
|
-
<span component="category/tracking/menu" {{{ if !./isTracked }}}
|
|
6
|
+
<span component="category/tracking/menu" class="d-flex gap-2 align-items-center {{{ if !./isTracked }}} hidden{{{ end }}}"><i class="fa fa-fw fa-inbox text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:tracking]]</span></span>
|
|
7
7
|
|
|
8
|
-
<span component="category/notwatching/menu" {{{ if !./isNotWatched }}}
|
|
8
|
+
<span component="category/notwatching/menu" class="d-flex gap-2 align-items-center {{{ if !./isNotWatched }}} hidden{{{ end }}}"><i class="fa fa-fw fa-clock-o text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:not-watching]]</span></span>
|
|
9
9
|
|
|
10
|
-
<span component="category/ignoring/menu" {{{ if !./isIgnored }}}
|
|
10
|
+
<span component="category/ignoring/menu" class="d-flex gap-2 align-items-center {{{ if !./isIgnored }}} hidden{{{ end }}}"><i class="fa fa-fw fa-eye-slash text-primary"></i><span class="visible-md-inline visible-lg-inline fw-semibold">[[category:ignoring]]</span></span>
|
|
11
11
|
</button>
|
|
12
12
|
|
|
13
13
|
<ul class="dropdown-menu p-1 text-sm {{{ if template.account/categories }}}dropdown-menu-end{{{ end }}}" role="menu">
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
{{{ if loggedIn }}}
|
|
12
12
|
{{{ if !privileges.topics:reply }}}
|
|
13
13
|
{{{ if locked }}}
|
|
14
|
-
<a component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
14
|
+
<a href="#" component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
15
15
|
{{{ end }}}
|
|
16
16
|
{{{ end }}}
|
|
17
17
|
|
|
18
18
|
{{{ if !locked }}}
|
|
19
|
-
<a component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled hidden" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
19
|
+
<a href="#" component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled hidden" disabled><i class="fa fa-lock"></i> [[topic:locked]]</a>
|
|
20
20
|
{{{ end }}}
|
|
21
21
|
{{{ else }}}
|
|
22
22
|
{{{ if !privileges.topics:reply }}}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<div class="btn-group bottom-sheet" component="thread/sort">
|
|
2
|
-
<button class="btn-ghost-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
<span class="d-none d-md-inline fw-semibold">[[topic:sort-by]]</span>
|
|
6
|
-
</span>
|
|
2
|
+
<button class="btn-ghost-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
|
|
3
|
+
<i class="fa fa-fw fa-arrow-down-wide-short text-primary"></i>
|
|
4
|
+
<span class="d-none d-md-inline fw-semibold">{sortOptionLabel}</span>
|
|
7
5
|
</button>
|
|
6
|
+
|
|
8
7
|
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
9
8
|
<li>
|
|
10
9
|
<a class="dropdown-item rounded-1 d-flex align-items-center gap-2" href="#" class="oldest_to_newest" data-sort="oldest_to_newest" role="menuitem">
|
package/templates/topic.tpl
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
{{{ end }}}
|
|
9
9
|
|
|
10
10
|
<div class="d-flex flex-column gap-3" itemid="{url}" itemscope itemtype="https://schema.org/DiscussionForumPosting">
|
|
11
|
+
<meta itemprop="headline" content="{title}">
|
|
12
|
+
<meta itemprop="url" content="{url}">
|
|
11
13
|
<meta itemprop="datePublished" content="{timestampISO}">
|
|
12
14
|
<meta itemprop="dateModified" content="{lastposttimeISO}">
|
|
13
15
|
<meta itemprop="author" itemscope itemtype="https://schema.org/Person" itemref="topicAuthorName{{{ if author.userslug }}} topicAuthorUrl{{{ end }}}">
|
|
@@ -15,7 +17,7 @@
|
|
|
15
17
|
{{{ if author.userslug }}}<meta id="topicAuthorUrl" itemprop="url" content="{config.relative_path}/user/{author.userslug}">{{{ end }}}
|
|
16
18
|
<div class="d-flex flex-wrap">
|
|
17
19
|
<div class="d-flex flex-column gap-3 flex-grow-1">
|
|
18
|
-
<h1 component="post/header" class="tracking-tight fw-semibold fs-3 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}"
|
|
20
|
+
<h1 component="post/header" class="tracking-tight fw-semibold fs-3 mb-0 text-break {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
|
19
21
|
<span class="topic-title" component="topic/title">{title}</span>
|
|
20
22
|
</h1>
|
|
21
23
|
|
|
@@ -68,12 +70,14 @@
|
|
|
68
70
|
<div class="d-flex gap-0 gap-lg-5">
|
|
69
71
|
<div class="posts-container" style="min-width: 0;">
|
|
70
72
|
<ul component="topic" class="posts timeline list-unstyled mt-sm-2 p-0 py-3" style="min-width: 0;" data-tid="{tid}" data-cid="{cid}">
|
|
71
|
-
{{{each posts}}}
|
|
73
|
+
{{{ each posts }}}
|
|
72
74
|
<li component="post" class="pt-4 {{{ if posts.deleted }}}deleted{{{ end }}} {{{ if posts.selfPost }}}self-post{{{ end }}} {{{ if posts.topicOwnerPost }}}topic-owner-post{{{ end }}}" <!-- IMPORT partials/data/topic.tpl -->>
|
|
73
75
|
<a component="post/anchor" data-index="{./index}" id="{increment(./index, "1")}"></a>
|
|
74
76
|
|
|
75
77
|
<meta itemprop="datePublished" content="{./timestampISO}">
|
|
78
|
+
{{{ if ./editedISO }}}
|
|
76
79
|
<meta itemprop="dateModified" content="{./editedISO}">
|
|
80
|
+
{{{ end }}}
|
|
77
81
|
|
|
78
82
|
<!-- IMPORT partials/topic/post.tpl -->
|
|
79
83
|
</li>
|
|
@@ -82,7 +86,7 @@
|
|
|
82
86
|
<!-- IMPORT partials/topic/event.tpl -->
|
|
83
87
|
{{{ end }}}
|
|
84
88
|
{{{ end }}}
|
|
85
|
-
{{{end}}}
|
|
89
|
+
{{{ end }}}
|
|
86
90
|
</ul>
|
|
87
91
|
{{{ if browsingUsers }}}
|
|
88
92
|
<div class="visible-xs">
|