36 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-06-20 14:19:43 +00:00
component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
2017-07-06 20:08:49 +00:00
h1.page-title Forum
2017-11-13 12:34:08 +00:00
ForumTabs
2017-06-20 13:46:49 +00:00
.forum
ThreadList(threads)
2017-11-13 12:34:08 +00:00
2017-06-27 02:15:52 +00:00
.buttons
button#new-thread.page-main-action.action(data-action="load", data-trigger="click", data-url="/new/thread")
2017-06-27 02:15:52 +00:00
Icon("plus")
span New thread
2017-10-16 10:56:46 +00:00
//- if len(threads) == threadsPerPage
//- LoadMore
2017-06-08 12:46:38 +00:00
component ThreadList(threads []*arn.Thread)
2017-06-22 20:26:52 +00:00
if len(threads) == 0
2017-07-03 15:33:57 +00:00
p.no-data.mountable No threads found.
2017-06-22 20:26:52 +00:00
else
each thread in threads
2017-11-13 12:34:08 +00:00
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