2016-11-20 03:02:33 +09:00
|
|
|
component Forum(tag string, threads []*arn.Thread)
|
|
|
|
h2.forum-header Forum
|
|
|
|
ForumTags
|
|
|
|
|
2016-11-19 02:58:00 +09:00
|
|
|
each thread in threads
|
|
|
|
ThreadLink(thread)
|
2016-12-06 12:36:31 +09:00
|
|
|
|
|
|
|
button#load-more-threads Load more
|
2016-11-19 02:58:00 +09:00
|
|
|
|
|
|
|
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
|
2016-11-22 12:34:59 +09:00
|
|
|
Avatar(thread.Author())
|
2016-11-19 02:58:00 +09:00
|
|
|
.thread-content-container
|
2016-12-02 15:24:45 +09:00
|
|
|
.thread-content
|
2016-11-19 02:58:00 +09:00
|
|
|
if thread.Sticky
|
2016-12-02 15:24:45 +09:00
|
|
|
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]))
|