Added a new button to delete a post

This commit is contained in:
Scott
2017-11-24 23:55:29 +01:00
parent 85a26a5c5b
commit e00ab63b50
4 changed files with 26 additions and 5 deletions

View File

@ -43,6 +43,9 @@ component Postable(post arn.Postable, user *arn.User, highlightAuthorID string)
Icon("pencil")
if post.Type() != "Thread"
if user.Role == "admin" || user.Role == "editor"
a.post-tool.post-delete.action(data-action="deletePost", data-trigger="click", data-id=post.ID(), title="Delete")
Icon("trash")
a.post-tool.post-permalink.ajax(href=post.Link(), title="Permalink")
Icon("link")