nodebb-theme-harmony 2.0.16 → 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
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>
|
|
@@ -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>
|