19 lines
480 B
Plaintext

component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
h1.page-title Forum
ForumTags
.forum
ThreadList(threads)
.buttons
button#new-thread.action(data-action="load", data-trigger="click", data-url="/new/thread")
Icon("plus")
span New thread
if len(threads) == threadsPerPage
LoadMore
component ThreadList(threads []*arn.Thread)
if len(threads) == 0
p.no-data.mountable No threads found.
else
each thread in threads
ThreadLink(thread)