12 lines
355 B
Plaintext
Raw Normal View History

2018-04-25 17:12:47 +00:00
component Post(post *arn.Post, user *arn.User)
.thread
.posts
2018-11-05 10:05:36 +00:00
Postable(post, user, true, "", "")
2018-04-25 17:12:47 +00:00
2018-10-31 05:27:48 +00:00
.side-note-container.mountable
2018-11-05 19:33:37 +00:00
if user != nil && user.Role == "admin"
2018-11-05 16:26:46 +00:00
a.side-note.tip(href=post.Link() + "/edit", aria-label="Admin Edit")
Icon("edit")
2018-10-31 05:27:48 +00:00
a.side-note(href=post.Parent().Link())= post.Parent().TitleByUser(user)