21 lines
517 B
Plaintext
Raw Normal View History

2017-06-20 16:19:43 +02:00
component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
2017-07-06 22:08:49 +02:00
h1.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
2017-07-03 17:33:57 +02:00
p.no-data.mountable No threads found.
2017-06-22 22:26:52 +02:00
else
each thread in threads
ThreadLink(thread)