implemented topic hide/show

This commit is contained in:
2026-01-19 22:10:38 -07:00
parent ca8a92eaa3
commit 309d7dc9d1
4 changed files with 59 additions and 4 deletions
+6 -4
View File
@@ -20,10 +20,12 @@
<div class="flex gap-2 flex-wrap">
<a href="{{ topicListLink }}"
class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">Topic List</a>
<a href="/TODO/hide"
class="bg-gray-600 hover:bg-gray-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">
{{ if isTopicHidden }}Show Topic{{ else }}Hide Topic{{ end }}
</a>
{{ if !.CurrentUser().IsAnon }}
<a href="{{ topicListLink }}/op/{{ topicNum }}/hide"
class="bg-gray-600 hover:bg-gray-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">
{{ if isTopicHidden }}Show Topic{{ else }}Hide Topic{{ end }}
</a>
{{ end }}
{{ if isset(urlNextTopic) }}
<a href="{{ urlNextTopic }}"
class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded text-sm font-medium transition-colors">Next Topic</a>