nodebb-theme-harmony 1.0.3 → 1.0.4
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/post-queue.tpl +29 -6
package/package.json
CHANGED
package/templates/post-queue.tpl
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
{{{ each posts }}}
|
|
46
46
|
<div class="card mb-4" data-id="{./id}" data-uid="{./user.uid}">
|
|
47
47
|
<div class="row g-0">
|
|
48
|
-
<div class="col-
|
|
48
|
+
<div class="col-xs-4 col-lg-3 bg-card-cap rounded-start">
|
|
49
49
|
<ul class="list-unstyled ps-0 mb-0 border-end h-100">
|
|
50
50
|
<li class="card-body border-bottom position-relative">
|
|
51
51
|
{{{ if !singlePost }}}
|
|
@@ -55,13 +55,16 @@
|
|
|
55
55
|
{{{ if posts.data.tid }}}[[post-queue:reply]]{{{ else }}}[[post-queue:topic]]{{{ end }}}
|
|
56
56
|
</label>
|
|
57
57
|
</li>
|
|
58
|
-
<li class="card-body border-bottom">
|
|
59
|
-
<div class="d-flex text-xs fw-semibold
|
|
58
|
+
<li class="card-body d-flex flex-column gap-1 border-bottom">
|
|
59
|
+
<div class="d-flex text-xs fw-semibold align-items-center">
|
|
60
60
|
[[post-queue:user]]
|
|
61
61
|
{{{ if ((privileges.ban || privileges.mute) || privileges.admin:users) }}}
|
|
62
62
|
<div class="ms-auto btn-group bottom-sheet">
|
|
63
|
-
<button href="#" class="btn btn-outline-sm text-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
63
|
+
<button href="#" class="btn btn-outline-sm text-xs dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">[[global:actions]]</button>
|
|
64
64
|
<ul class="dropdown-menu p-1 text-sm">
|
|
65
|
+
{{{ if privileges.view:users:info }}}
|
|
66
|
+
<li><a class="dropdown-item rounded-1" href="{config.relative_path}/user/{./user.userslug}/info">[[user:account_info]]</a></li>
|
|
67
|
+
{{{ end }}}
|
|
65
68
|
{{{ if privileges.ban }}}
|
|
66
69
|
<li class="{{{ if target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="ban">[[user:ban_account]]</a></li>
|
|
67
70
|
<li class="{{{ if !target.user.banned }}}hidden{{{ end }}}"><a class="dropdown-item rounded-1" href="#" data-action="unban">[[user:unban_account]]</a></li>
|
|
@@ -86,6 +89,20 @@
|
|
|
86
89
|
{posts.user.username}
|
|
87
90
|
{{{ end }}}
|
|
88
91
|
</div>
|
|
92
|
+
<div>
|
|
93
|
+
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
94
|
+
<span title="{posts.user.postcount}" class="human-readable-number fw-bold">{posts.user.postcount}</span>
|
|
95
|
+
<span class="text-lowercase fw-normal">[[global:posts]]</span>
|
|
96
|
+
</span>
|
|
97
|
+
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
98
|
+
<span title="{posts.user.reputation}" class="human-readable-number fw-bold">{posts.user.reputation}</span>
|
|
99
|
+
<span class="text-lowercase fw-normal">[[global:reputation]]</span>
|
|
100
|
+
</span>
|
|
101
|
+
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
102
|
+
<span class="text-lowercase fw-normal">[[user:joined]]</span>
|
|
103
|
+
<span title="{posts.user.joindateISO}" class="timeago fw-bold"></span>
|
|
104
|
+
</span>
|
|
105
|
+
</div>
|
|
89
106
|
</li>
|
|
90
107
|
<li class="card-body border-bottom">
|
|
91
108
|
<div class="text-xs fw-semibold mb-1">[[post-queue:when]]</div>
|
|
@@ -97,7 +114,13 @@
|
|
|
97
114
|
</div>
|
|
98
115
|
<span class="small topic-title text-break">
|
|
99
116
|
{{{ if posts.data.tid }}}
|
|
100
|
-
<
|
|
117
|
+
<div class="d-flex flex-column align-items-start gap-1">
|
|
118
|
+
<a href="{config.relative_path}/topic/{posts.data.tid}">{posts.topic.title}</a>
|
|
119
|
+
<span class="badge text-body border border-gray-300 stats text-xs">
|
|
120
|
+
<span class="text-lowercase fw-normal">[[global:lastpost]]</span>
|
|
121
|
+
<span title="{posts.topic.lastposttimeISO}" class="timeago fw-bold"></span>
|
|
122
|
+
</span>
|
|
123
|
+
</div>
|
|
101
124
|
{{{ end }}}
|
|
102
125
|
<span class="title-text">{posts.data.title}</span>
|
|
103
126
|
</span>
|
|
@@ -152,7 +175,7 @@
|
|
|
152
175
|
</li>
|
|
153
176
|
</ul>
|
|
154
177
|
</div>
|
|
155
|
-
<div class="col-
|
|
178
|
+
<div class="col-xs-8 col-lg-9 d-flex flex-column">
|
|
156
179
|
<div class="post-content mb-auto text-break p-3 pb-0 h-100">{posts.data.content}</div>
|
|
157
180
|
<div class="post-content-editable flex-grow-1 hidden">
|
|
158
181
|
<textarea class="form-control w-100 h-100 p-3">{posts.data.rawContent}</textarea>
|