22 lines
501 B
Plaintext
Raw Normal View History

2017-06-20 14:19:43 +00:00
component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
2017-06-07 23:14:45 +00:00
h2.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
p No threads found.
else
each thread in threads
ThreadLink(thread)