Added admin edit for post parents
This commit is contained in:
parent
87c2ce509e
commit
3ade44c219
@ -41,10 +41,6 @@ component Postable(post arn.Postable, user *arn.User, includeReplies bool, heade
|
|||||||
a.post-tool.post-like.tip.action(id="like-" + post.GetID(), aria-label="Like", data-action="like", data-trigger="click")
|
a.post-tool.post-like.tip.action(id="like-" + post.GetID(), aria-label="Like", data-action="like", data-trigger="click")
|
||||||
Icon("thumbs-up")
|
Icon("thumbs-up")
|
||||||
|
|
||||||
//- if user.Role == "admin"
|
|
||||||
//- a.post-tool.post-edit.tip(href=post.Link() + "/edit", aria-label="Edit")
|
|
||||||
//- Icon("edit")
|
|
||||||
|
|
||||||
a.post-tool.post-reply.tip.action(data-post-id=post.GetID(), aria-label="Reply", data-action="reply", data-trigger="click")
|
a.post-tool.post-reply.tip.action(data-post-id=post.GetID(), aria-label="Reply", data-action="reply", data-trigger="click")
|
||||||
Icon("reply")
|
Icon("reply")
|
||||||
|
|
||||||
|
@ -4,4 +4,8 @@ component Post(post *arn.Post, user *arn.User)
|
|||||||
Postable(post, user, true, "", "")
|
Postable(post, user, true, "", "")
|
||||||
|
|
||||||
.side-note-container.mountable
|
.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)
|
a.side-note(href=post.Parent().Link())= post.Parent().TitleByUser(user)
|
||||||
|
Loading…
Reference in New Issue
Block a user