Improved post UI

This commit is contained in:
2019-08-30 11:42:46 +09:00
parent 2894a92af1
commit 3ba9b8bf3b
6 changed files with 55 additions and 38 deletions

View File

@ -4,6 +4,7 @@ component Post(post *arn.Post, user *arn.User)
Postable(post, user, true, true, "")
if user != nil && user.Role == "admin"
.side-note-container.mountable
a.side-note.tip(href=post.Link() + "/edit", aria-label="Admin Edit")
.buttons
a.button.mountable(href=post.Link() + "/edit")
Icon("edit")
span Edit (admin)

View File

@ -1,6 +0,0 @@
.side-note-container
horizontal
justify-content flex-end
.side-note
font-size 0.9rem