22 lines
501 B
Plaintext
Raw Normal View History

2017-06-20 16:19:43 +02:00
component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
2017-06-08 01:14:45 +02:00
h2.page-title Forum
ForumTags
2017-06-20 15:46:49 +02:00
.forum
ThreadList(threads)
2017-06-27 04:15:52 +02: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 16:19:43 +02:00
button
Icon("refresh")
span Load more
2017-06-08 14:46:38 +02:00
component ThreadList(threads []*arn.Thread)
2017-06-22 22:26:52 +02:00
if len(threads) == 0
p No threads found.
else
each thread in threads
ThreadLink(thread)