implemented topic hide/show
This commit is contained in:
+6
-4
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user