nodebb-theme-harmony 2.0.15 → 2.0.17
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/partials/posts_list_item.tpl +10 -2
- package/templates/partials/quick-search-results.tpl +1 -1
- package/templates/partials/topic/mark-unread.tpl +1 -1
- package/templates/partials/topic/reply-button.tpl +1 -1
- package/templates/partials/topic/sort.tpl +2 -2
- package/templates/partials/topic/tools.tpl +2 -2
- package/templates/partials/topic/watch.tpl +4 -4
- package/templates/partials/topics_list.tpl +1 -1
- package/templates/topic.tpl +2 -2
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
{{{ if ./isMainPost }}}<i class="fa fa-book text-muted" title="[[topic:topic]]"></i> {{{ end }}}{./topic.title}
|
|
5
5
|
</a>
|
|
6
6
|
|
|
7
|
-
<div class="post-body d-flex flex-column gap-1">
|
|
8
|
-
<div class="d-flex gap-
|
|
7
|
+
<div class="post-body d-flex flex-column gap-1 mb-2">
|
|
8
|
+
<div class="d-flex gap-2 post-info text-sm align-items-center">
|
|
9
9
|
<div class="post-author d-flex align-items-center gap-1">
|
|
10
10
|
<a class="lh-1 text-decoration-none" href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "16px", true, "not-responsive")}</a>
|
|
11
11
|
<a class="lh-1 fw-semibold" href="{config.relative_path}/user/{./user.userslug}">{../user.displayname}</a>
|
|
@@ -17,4 +17,12 @@
|
|
|
17
17
|
{./content}
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
|
+
<div class="mb-3 d-flex flex-wrap gap-1 w-100">
|
|
21
|
+
{buildCategoryLabel(./category, "a", "border")}
|
|
22
|
+
<span data-tid="{./topic.tid}" component="topic/tags" class="lh-1 tag-list hidden-xs d-flex flex-wrap gap-1 {{{ if !./topic.tags.length }}}hidden{{{ end }}}">
|
|
23
|
+
{{{ each ./topic.tags }}}
|
|
24
|
+
<a href="{config.relative_path}/tags/{./valueEncoded}"><span class="badge border border-gray-300 fw-normal tag tag-class-{./class}" data-tag="{./value}">{./valueEscaped}</span></a>
|
|
25
|
+
{{{ end }}}
|
|
26
|
+
</span>
|
|
27
|
+
</div>
|
|
20
28
|
</li>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</a>
|
|
24
24
|
<div class="d-flex gap-2 post-info px-2 text-xs">
|
|
25
25
|
<div class="category-item d-inline-block ff-secondary">
|
|
26
|
-
{
|
|
26
|
+
{buildCategoryLabel(posts.category, "span")}
|
|
27
27
|
</div>
|
|
28
28
|
<span class="timeago text-muted" title="{posts.timestampISO}"></span>
|
|
29
29
|
</div>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{{{ if loggedIn }}}
|
|
2
2
|
<button component="topic/mark-unread" class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center">
|
|
3
3
|
<i class="fa fa-fw fa-inbox text-primary"></i>
|
|
4
|
-
<span class="d-none d-md-inline fw-semibold">[[topic:mark-unread]]</span>
|
|
4
|
+
<span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:mark-unread]]</span>
|
|
5
5
|
</button>
|
|
6
6
|
{{{ end }}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div component="topic/reply/container" class="btn-group {{{ if !privileges.topics:reply }}}hidden{{{ end }}}">
|
|
2
|
-
<a href="{config.relative_path}/compose?tid={tid}" class="d-flex {{{ if !config.theme.topicSidebarTools}}}px-3{{{ end }}} gap-2 align-items-center btn btn-sm btn-primary fw-semibold" component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-fw fa-reply {{{ if !config.theme.topicSidebarTools}}} d-sm-block d-md-none {{{ end }}}"></i><span class="d-none d-md-block">
|
|
2
|
+
<a href="{config.relative_path}/compose?tid={tid}" class="d-flex {{{ if !config.theme.topicSidebarTools}}}px-3{{{ end }}} gap-2 align-items-center btn btn-sm btn-primary fw-semibold" component="topic/reply" data-ajaxify="false" role="button"><i class="fa fa-fw fa-reply {{{ if !config.theme.topicSidebarTools}}} d-sm-block d-md-none {{{ end }}}"></i><span class="d-none d-md-block text-truncate text-nowrap">[[topic:reply]]</span></a>
|
|
3
3
|
<button type="button" class="btn btn-sm btn-primary dropdown-toggle flex-0" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[topic:reply-options]]">
|
|
4
4
|
<span class="caret"></span>
|
|
5
5
|
</button>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="btn-group bottom-sheet" component="thread/sort">
|
|
2
|
-
<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" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
|
|
2
|
+
<button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 align-items-center dropdown-toggle text-truncate" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="[[aria:post-sort-option, {sortOptionLabel}]]">
|
|
3
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>
|
|
4
|
+
<span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">{sortOptionLabel}</span>
|
|
5
5
|
</button>
|
|
6
6
|
|
|
7
7
|
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{{{ if privileges.view_thread_tools }}}
|
|
2
2
|
<div class="btn-group thread-tools bottom-sheet">
|
|
3
|
-
<button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
3
|
+
<button class="btn btn-ghost btn-sm ff-secondary d-flex align-items-center gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
4
|
<i class="fa fa-fw fa-gear text-primary"></i>
|
|
5
|
-
<span class="d-none d-md-inline fw-semibold">[[topic:thread-tools.title]]</span>
|
|
5
|
+
<span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:thread-tools.title]]</span>
|
|
6
6
|
</button>
|
|
7
7
|
<ul class="dropdown-menu p-1 text-sm" role="menu"></ul>
|
|
8
8
|
</div>
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{{{ if config.loggedIn }}}
|
|
2
2
|
<div class="btn-group bottom-sheet" component="topic/watch">
|
|
3
|
-
<button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
3
|
+
<button class="btn btn-ghost btn-sm ff-secondary d-flex gap-2 dropdown-toggle text-truncate" data-bs-toggle="dropdown" type="button" aria-haspopup="true" aria-expanded="false">
|
|
4
4
|
<span component="topic/following/menu" class="d-flex gap-2 align-items-center{{{ if !isFollowing }}} hidden{{{ end }}}">
|
|
5
5
|
<i class="flex-shrink-0 fa fa-fw fa-bell-o text-primary"></i>
|
|
6
|
-
<span class="d-none d-md-inline fw-semibold">[[topic:watching]]</span>
|
|
6
|
+
<span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:watching]]</span>
|
|
7
7
|
</span>
|
|
8
8
|
|
|
9
9
|
<span component="topic/not-following/menu" class="d-flex gap-2 align-items-center{{{ if !isNotFollowing}}} hidden{{{ end }}}">
|
|
10
10
|
<i class="flex-shrink-0 fa fa-fw fa-bell-slash-o text-primary"></i>
|
|
11
|
-
<span class="d-none d-md-inline fw-semibold">[[topic:not-watching]]</span>
|
|
11
|
+
<span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:not-watching]]</span>
|
|
12
12
|
</span>
|
|
13
13
|
|
|
14
14
|
<span component="topic/ignoring/menu" class="d-flex gap-2 align-items-center{{{ if !isIgnoring }}} hidden{{{ end }}}">
|
|
15
15
|
<i class="flex-shrink-0 fa fa-fw fa-eye-slash text-primary"></i>
|
|
16
|
-
<span class="d-none d-md-inline fw-semibold">[[topic:ignoring]]</span>
|
|
16
|
+
<span class="d-none d-md-inline fw-semibold text-truncate text-nowrap">[[topic:ignoring]]</span>
|
|
17
17
|
</span>
|
|
18
18
|
</button>
|
|
19
19
|
<ul class="dropdown-menu p-1 text-sm" role="menu">
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
{{{each ./icons}}}<span class="lh-1">{@value}</span>{{{end}}}
|
|
52
52
|
|
|
53
53
|
{{{ if (!template.category && !template.world) }}}
|
|
54
|
-
{
|
|
54
|
+
{buildCategoryLabel(./category, "a", "border")}
|
|
55
55
|
{{{ end }}}
|
|
56
56
|
|
|
57
57
|
<span data-tid="{./tid}" component="topic/tags" class="lh-1 tag-list hidden-xs d-flex flex-wrap gap-1 {{{ if !./tags.length }}}hidden{{{ end }}}">
|
package/templates/topic.tpl
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</a>
|
|
45
45
|
{{{each icons}}}<span class="lh-1">{@value}</span>{{{end}}}
|
|
46
46
|
</span>
|
|
47
|
-
{
|
|
47
|
+
{buildCategoryLabel(category, "a", "border")}
|
|
48
48
|
<div data-tid="{./tid}" component="topic/tags" class="lh-1 tags tag-list d-flex flex-wrap hidden-xs hidden-empty gap-2"><!-- IMPORT partials/topic/tags.tpl --></div>
|
|
49
49
|
<div class="d-flex hidden-xs gap-2"><!-- IMPORT partials/topic/stats.tpl --></div>
|
|
50
50
|
</div>
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
<div class="sticky-top" style="{{{ if config.theme.topicSidebarTools }}}top:2rem;{{{ else }}}top:6rem; {{{ end }}} z-index:1;">
|
|
98
98
|
<div class="d-flex flex-column gap-3 align-items-end">
|
|
99
99
|
{{{ if config.theme.topicSidebarTools }}}
|
|
100
|
-
<div class="d-flex flex-column gap-2" style="
|
|
100
|
+
<div class="d-flex flex-column gap-2" style="width: 170px;">
|
|
101
101
|
<!-- IMPORT partials/topic/reply-button.tpl -->
|
|
102
102
|
<!-- IMPORT partials/topic/mark-unread.tpl -->
|
|
103
103
|
<!-- IMPORT partials/topic/watch.tpl -->
|