Improved posts style
This commit is contained in:
@ -30,8 +30,8 @@ component Activity(activity arn.Activity, user *arn.User)
|
||||
.post-author
|
||||
Avatar(activity.Creator())
|
||||
.post-content
|
||||
.activity-header
|
||||
.activity-creator
|
||||
.post-header
|
||||
.post-creator
|
||||
a(href=activity.Creator().Link())= activity.Creator().Nick
|
||||
|
||||
if activity.TypeName() == "ActivityCreate"
|
||||
@ -49,7 +49,7 @@ component Activity(activity arn.Activity, user *arn.User)
|
||||
button.activity-action.tip.action(data-action="deleteObject", data-trigger="click", aria-label="Delete", data-return-path="/activity", data-confirm-type="activity")
|
||||
RawIcon("trash")
|
||||
|
||||
.activity-date.utc-date(data-date=activity.GetCreated())
|
||||
.post-date.utc-date(data-date=activity.GetCreated())
|
||||
|
||||
if activity.TypeName() == "ActivityCreate"
|
||||
ActivityCreateText(activity.(*arn.ActivityCreate), user)
|
||||
|
@ -9,19 +9,6 @@
|
||||
.activity-action
|
||||
opacity 1
|
||||
|
||||
.activity-header
|
||||
horizontal
|
||||
horizontal-line-bottom
|
||||
|
||||
.activity-creator
|
||||
flex 1
|
||||
|
||||
.activity-date
|
||||
color hsla(text-color-h, text-color-s, text-color-l, 0.5)
|
||||
|
||||
.actvity-text-create
|
||||
opacity 0.8
|
||||
|
||||
.activity-text-consume-anime
|
||||
// ...
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
component Post(post *arn.Post, user *arn.User)
|
||||
.thread
|
||||
.posts
|
||||
Postable(post, user, true, "", "")
|
||||
Postable(post, user, true, "")
|
||||
|
||||
.side-note-container.mountable
|
||||
if user != nil && user.Role == "admin"
|
||||
|
@ -3,7 +3,7 @@ component Thread(thread *arn.Thread, user *arn.User)
|
||||
|
||||
#thread.thread(data-id=thread.ID)
|
||||
.posts
|
||||
Postable(thread, user, true, "", thread.Creator().ID)
|
||||
Postable(thread, user, true, thread.Creator().ID)
|
||||
|
||||
//- Reply
|
||||
if user != nil
|
||||
|
Reference in New Issue
Block a user