Improved post UI
This commit is contained in:
@ -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"
|
||||
|
@ -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)
|
||||
|
@ -1,6 +0,0 @@
|
||||
.side-note-container
|
||||
horizontal
|
||||
justify-content flex-end
|
||||
|
||||
.side-note
|
||||
font-size 0.9rem
|
Reference in New Issue
Block a user