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

@ -36,7 +36,7 @@ component Activity(activity arn.Activity, user *arn.User)
//- Avatar(activity.Creator())
//- .post-content
//- .post-header
//- .post-creator
//- .post-header-info
//- a(href=activity.Creator().Link())= activity.Creator().Nick
//- if activity.TypeName() == "ActivityCreate"

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