Added admin edit for post parents

This commit is contained in:
2018-11-06 01:26:46 +09:00
parent 87c2ce509e
commit 3ade44c219
2 changed files with 4 additions and 4 deletions

View File

@ -4,4 +4,8 @@ component Post(post *arn.Post, user *arn.User)
Postable(post, user, true, "", "")
.side-note-container.mountable
if 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)