Skip to content

Node.js based forum software built for the modern web

fix: post queue conditionals

Julian Lam9e0762a59336
diff --git a/src/views/post-queue.tpl b/src/views/post-queue.tpl
index 2da111c611..a5fcd2bb26 100644
--- a/src/views/post-queue.tpl
+++ b/src/views/post-queue.tpl
@@ -70,7 +70,9 @@
<input id="{./id}" type="checkbox" class="form-check-input" autocomplete="off" />
{{{ end }}}
<label for="{./id}" class="small stretched-link">
- {{{ if posts.data.tid }}}[[post-queue:reply]]{{{ else if posts.data.crosspostCid }}}[[post-queue:crosspost]]{{{ else }}}[[post-queue:topic]]{{{ end }}}
+ {{{ if posts.data.crosspostCid }}}[[post-queue:crosspost]]{{{ end }}}
+ {{{ if (!posts.data.crosspostCid && posts.data.tid) }}}[[post-queue:reply]]{{{ end }}}
+ {{{ if posts.data.cid }}}[[post-queue:topic]]{{{ end }}}
</label>
</li>
<li class="card-body d-flex flex-column gap-1 border-bottom">