Removed ForumTags template
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
|
||||
h1.page-title Forum
|
||||
ForumTags
|
||||
|
||||
ForumTabs
|
||||
|
||||
.forum
|
||||
ThreadList(threads)
|
||||
|
||||
|
||||
.buttons
|
||||
button#new-thread.action(data-action="load", data-trigger="click", data-url="/new/thread")
|
||||
Icon("plus")
|
||||
@ -16,4 +18,19 @@ component ThreadList(threads []*arn.Thread)
|
||||
p.no-data.mountable No threads found.
|
||||
else
|
||||
each thread in threads
|
||||
ThreadLink(thread)
|
||||
ThreadLink(thread)
|
||||
|
||||
component ForumTabs
|
||||
.tabs
|
||||
ForumTab("All", "", "list")
|
||||
ForumTab("General", "general", "list")
|
||||
ForumTab("News", "news", "list")
|
||||
ForumTab("Anime", "anime", "list")
|
||||
ForumTab("Updates", "update", "list")
|
||||
ForumTab("Suggestions", "suggestion", "list")
|
||||
ForumTab("Bugs", "bug", "list")
|
||||
|
||||
component ForumTab(title string, category string, icon string)
|
||||
a.tab.action(href=strings.TrimSuffix("/forum/" + category, "/"), data-action="diff", data-trigger="click")
|
||||
Icon(arn.GetForumIcon(category))
|
||||
span.tab-text= title
|
Reference in New Issue
Block a user