2019-08-30 11:42:46 +09:00

11 lines
256 B
Plaintext

component Post(post *arn.Post, user *arn.User)
.thread
.posts
Postable(post, user, true, true, "")
if user != nil && user.Role == "admin"
.buttons
a.button.mountable(href=post.Link() + "/edit")
Icon("edit")
span Edit (admin)