12 lines
351 B
Plaintext

component Post(post *arn.Post, user *arn.User)
.thread
.posts
Postable(post, user, true, "")
.side-note-container.mountable
if user != nil && user.Role == "admin"
a.side-note.tip(href=post.Link() + "/edit", aria-label="Admin Edit")
Icon("edit")
a.side-note(href=post.Parent().Link())= post.Parent().TitleByUser(user)