21 lines
517 B
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
ForumTags
2017-06-20 13:46:49 +00:00
.forum
ThreadList(threads)
2017-06-27 02:15:52 +00:00
.buttons
button#new-thread.action(data-action="load", data-trigger="click", data-url="/new/thread")
Icon("plus")
span New thread
if len(threads) == threadsPerPage
2017-06-20 14:19:43 +00:00
button
Icon("refresh")
span Load more
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
ThreadLink(thread)