Group up existing components into elements
This commit is contained in:
13
elements/ThreadLink.pixy
Normal file
13
elements/ThreadLink.pixy
Normal 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]))
|
Reference in New Issue
Block a user