18 lines
371 B
Plaintext
18 lines
371 B
Plaintext
component Forum(tag string, threads []*arn.Thread, threadsPerPage int)
|
|
h2.page-title Forum
|
|
ForumTags
|
|
.forum
|
|
ThreadList(threads)
|
|
|
|
if len(threads) == threadsPerPage
|
|
.buttons
|
|
button
|
|
Icon("refresh")
|
|
span Load more
|
|
|
|
component ThreadList(threads []*arn.Thread)
|
|
if len(threads) == 0
|
|
p No threads found.
|
|
else
|
|
each thread in threads
|
|
ThreadLink(thread) |