12 lines
355 B
Plaintext
Raw Normal View History

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