nodebb-theme-harmony 2.0.13 → 2.0.15
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
package/scss/mixins.scss
CHANGED
package/scss/topic.scss
CHANGED
|
@@ -69,6 +69,13 @@ body.template-topic {
|
|
|
69
69
|
@include topic-avatars();
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
[component="post/parent"] {
|
|
73
|
+
margin-left: 2.5rem;
|
|
74
|
+
[component="post/parent/content"] > p:last-child {
|
|
75
|
+
margin-bottom: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
72
79
|
[component="post/replies/container"] {
|
|
73
80
|
.icon {
|
|
74
81
|
display: none !important;
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
{{{ end }}}
|
|
6
6
|
</div>
|
|
7
7
|
{{{ end }}}
|
|
8
|
-
|
|
8
|
+
{{{ if (./parent && !hideParent) }}}
|
|
9
|
+
<!-- IMPORT partials/topic/post-parent.tpl -->
|
|
10
|
+
{{{ end }}}
|
|
11
|
+
<div class="d-flex align-items-start gap-3 post-container-parent">
|
|
9
12
|
<div class="bg-body d-none d-sm-block rounded-circle" style="outline: 2px solid var(--bs-body-bg);">
|
|
10
13
|
<a class="d-inline-block position-relative text-decoration-none" href="{{{ if ./user.userslug }}}{config.relative_path}/user/{./user.userslug}{{{ else }}}#{{{ end }}}" aria-label="[[aria:profile-page-for, {./user.displayname}]]">
|
|
11
14
|
{buildAvatar(posts.user, "48px", true, "", "user/picture")}
|
|
@@ -54,7 +57,7 @@
|
|
|
54
57
|
{{{ end }}}
|
|
55
58
|
|
|
56
59
|
<div class="d-flex gap-1 align-items-center">
|
|
57
|
-
<span class="text-muted">{
|
|
60
|
+
<span class="text-muted">{generateWrote(@value, config.timeagoCutoff)}</span>
|
|
58
61
|
|
|
59
62
|
<i component="post/edit-indicator" class="fa fa-edit text-muted{{{ if privileges.posts:history }}} pointer{{{ end }}} edit-icon {{{ if !posts.editor.username }}}hidden{{{ end }}}" title="[[global:edited-timestamp, {isoTimeToLocaleString(./editedISO, config.userLang)}]]"></i>
|
|
60
63
|
<span data-editor="{posts.editor.userslug}" component="post/editor" class="visually-hidden">[[global:last-edited-by, {posts.editor.username}]] <span class="timeago" title="{isoTimeToLocaleString(posts.editedISO, config.userLang)}"></span></span>
|
|
@@ -9,15 +9,9 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
11
|
{{{ if loggedIn }}}
|
|
12
|
-
{{{ if (
|
|
13
|
-
<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-fw fa-lock"></i> [[topic:locked]]</a>
|
|
14
|
-
{{{ end }}}
|
|
15
|
-
|
|
16
|
-
{{{ if !locked }}}
|
|
17
|
-
<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-fw fa-lock"></i> [[topic:locked]]</a>
|
|
18
|
-
{{{ end }}}
|
|
12
|
+
<a href="#" component="topic/reply/locked" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary disabled {{{ if (privileges.topics:reply || !locked) }}}hidden{{{ end }}}" disabled><i class="fa fa-fw fa-lock"></i> [[topic:locked]]</a>
|
|
19
13
|
{{{ else }}}
|
|
20
14
|
{{{ if !privileges.topics:reply }}}
|
|
21
|
-
<a component="topic/reply/guest" href="{config.relative_path}/login" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary"><i class="fa fa-fw fa-
|
|
15
|
+
<a component="topic/reply/guest" href="{config.relative_path}/login" class="d-flex gap-2 align-items-center fw-semibold btn btn-sm btn-primary"><i class="fa fa-fw fa-sign-in {{{ if !config.theme.topicSidebarTools}}} d-sm-block d-md-none {{{ end }}}"></i><span>[[topic:guest-login-reply]]</span></a>
|
|
22
16
|
{{{ end }}}
|
|
23
17
|
{{{ end }}}
|