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