Skip to content

Node.js based forum software built for the modern web

only show thumb selector if more than 1

Barış Soner Uşaklı619af8871aa4
diff --git a/src/views/modals/topic-thumbs-view.tpl b/src/views/modals/topic-thumbs-view.tpl
index 27a3e05a57..82265b47e1 100644
--- a/src/views/modals/topic-thumbs-view.tpl
+++ b/src/views/modals/topic-thumbs-view.tpl
@@ -2,6 +2,7 @@
<div class="d-flex justify-content-center align-items-center mb-5" style="height: 33vh; max-height: 33vh;">
<img component="topic/thumb/current" src="{src}" style="max-height: 33vh;" />
</div>
+ {{{ if (thumbs.length != "1") }}}
<hr/>
<div class="d-flex justify-content-center mb-3 gap-3">
{{{ each thumbs }}}
@@ -10,4 +11,5 @@
</div>
{{{ end }}}
</div>
+ {{{ end }}}
</div>
\ No newline at end of file