2018-04-25 17:12:47 +00:00
|
|
|
component Post(post *arn.Post, user *arn.User)
|
|
|
|
.thread
|
|
|
|
.posts
|
2019-08-30 01:02:22 +00:00
|
|
|
Postable(post, user, true, true, "")
|
2018-04-25 17:12:47 +00:00
|
|
|
|
2019-08-30 01:02:22 +00:00
|
|
|
if user != nil && user.Role == "admin"
|
2019-08-30 02:42:46 +00:00
|
|
|
.buttons
|
|
|
|
a.button.mountable(href=post.Link() + "/edit")
|
2018-11-05 16:26:46 +00:00
|
|
|
Icon("edit")
|
2019-08-30 02:42:46 +00:00
|
|
|
span Edit (admin)
|