Group up existing components into elements

This commit is contained in:
2019-11-19 16:12:52 +09:00
parent dc4fc1410d
commit c542bcdcd6
77 changed files with 291 additions and 349 deletions

13
elements/ThreadLink.pixy Normal file
View File

@ -0,0 +1,13 @@
component ThreadLink(thread *arn.Thread)
.thread-link.mountable(data-sticky=thread.Sticky)
.post-author.thread-author
Avatar(thread.Creator())
.thread-content-container
.thread-content
if thread.Sticky != 0
Icon("thumb-tack")
a.thread-link-title(href="/thread/" + thread.ID)= thread.Title
.spacer
.thread-reply-count= len(thread.PostIDs)
.thread-icons
Icon(arn.GetForumIcon(thread.Tags[0]))