24 lines
649 B
Plaintext
Raw Normal View History

component Forum(tag string, threads []*arn.Thread)
2017-06-08 01:14:45 +02:00
h2.page-title Forum
ForumTags
2017-06-08 14:46:38 +02:00
ThreadList(threads)
2017-06-08 14:46:38 +02:00
button#load-more-threads Load more
component ThreadList(threads []*arn.Thread)
2016-11-19 02:58:00 +09:00
each thread in threads
ThreadLink(thread)
component ThreadLink(thread *arn.Thread)
2016-11-19 17:49:00 +09:00
.thread-link(data-sticky=thread.Sticky)
2016-11-19 02:58:00 +09:00
.post-author.thread-author
Avatar(thread.Author())
2016-11-19 02:58:00 +09:00
.thread-content-container
.thread-content
2016-11-19 02:58:00 +09:00
if thread.Sticky
Icon("thumb-tack")
a.thread-link-title.ajax(href="/threads/" + thread.ID)= thread.Title
.spacer
2016-11-20 04:07:10 +09:00
.thread-reply-count= thread.Replies
.thread-icons
Icon(arn.GetForumIcon(thread.Tags[0]))