nodebb-theme-harmony 3.0.8 → 3.0.9
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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
<div class="post-content text-xs text-break line-clamp-sm-2 lh-sm position-relative flex-fill">
|
|
10
10
|
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./topic.slug}{{{ if ./index }}}/{./index}{{{ end }}}" aria-label="[[global:lastpost]]"></a>
|
|
11
|
-
{{
|
|
11
|
+
{{txEscape(./content)}}
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
14
14
|
{{{ end }}}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
<li component="post" class="posts-list-item {{{ if ./deleted }}} deleted{{{ else }}}{{{ if ./topic.deleted }}} deleted{{{ end }}}{{{ end }}}{{{ if ./topic.scheduled }}} scheduled{{{ end }}}" data-pid="{./pid}" data-uid="{./uid}">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<hr/>
|
|
3
|
+
<a class="topic-title fw-semibold fs-5 mb-2 text-reset text-break d-block" href="{config.relative_path}/post/{encodeURIComponent(./pid)}">
|
|
4
|
+
{{{ if ./isMainPost }}}<i class="fa fa-book text-muted" title="[[topic:topic]]"></i> {{{ end }}}{./topic.title}
|
|
5
|
+
</a>
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
<div class="post-author d-flex align-items-center gap-1">
|
|
10
|
+
<a class="lh-1 text-decoration-none" href="{config.relative_path}/user/{./user.userslug}">{{buildAvatar(./user, "16px", true, "not-responsive")}}</a>
|
|
11
|
+
<a class="lh-1 fw-semibold" href="{config.relative_path}/user/{./user.userslug}">{../user.displayname}</a>
|
|
12
|
+
</div>
|
|
13
|
+
<span class="timeago text-muted lh-1" title="{./timestampISO}"></span>
|
|
14
|
+
</div>
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
<div component="post/content" class="content text-sm text-break">
|
|
17
|
+
{{{ if ./txContent }}}{{tx(./content)}}{{{ else }}}{{txEscape(./content)}}{{{ end }}}
|
|
18
|
+
</div>
|
|
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 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}">{./value}</span></a>
|
|
25
|
+
{{{ end }}}
|
|
26
|
+
</span>
|
|
27
|
+
</div>
|
|
28
28
|
</li>
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
<span class="timeago text-nowrap text-muted" title="{post.timestampISO}"></span>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
|
-
<div class="text-sm">{{
|
|
11
|
+
<div class="text-sm">{{{ if post.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(post.content))}}</div>
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
</div>
|
|
79
79
|
|
|
80
80
|
<div class="content text-break" component="post/content" itemprop="text">
|
|
81
|
-
{{
|
|
81
|
+
{{{ if posts.txContent }}}{{tx(posts.content)}}{{{ else }}}{{txEscape(posts.content)}}{{{ end }}}
|
|
82
82
|
</div>
|
|
83
83
|
|
|
84
84
|
<div component="post/footer" class="post-footer border-bottom pb-2">
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
<div class="flex-grow-1 d-flex flex-wrap gap-1 position-relative">
|
|
23
23
|
<h3 component="topic/header" class="title text-break text-wrap-pretty fs-5 fw-semibold m-0 tracking-tight w-100 {{{ if showSelect }}}me-4 me-lg-0{{{ end }}}">
|
|
24
|
-
<a class="text-reset" href="{{{ if topics.noAnchor }}}#{{{ else }}}{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}{{{ end }}}">{{
|
|
24
|
+
<a class="text-reset" href="{{{ if topics.noAnchor }}}#{{{ else }}}{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}{{{ end }}}">{{{ if ./txTitle }}}{{tx(./title)}}{{{ else }}}{./title}{{{ end }}}</a>
|
|
25
25
|
|
|
26
26
|
</h3>
|
|
27
27
|
<span component="topic/labels" class="d-flex flex-wrap gap-1 w-100">
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
</div>
|
|
121
121
|
<div class="post-content text-xs ps-2 line-clamp-sm-2 lh-sm text-break position-relative flex-fill">
|
|
122
122
|
<a class="stretched-link" tabindex="-1" href="{config.relative_path}/topic/{./slug}/{./teaser.index}" aria-label="[[global:lastpost]]"></a>
|
|
123
|
-
{{
|
|
123
|
+
{{txEscape(./teaser.content)}}
|
|
124
124
|
</div>
|
|
125
125
|
{{{ end }}}
|
|
126
126
|
{{{ end }}}
|