More changes
This commit is contained in:
parent
d52fe46e9a
commit
752e3cc682
@ -1,4 +1,4 @@
|
||||
component Postable(post arn.Postable, viewUser *arn.User, highlightAuthorID string)
|
||||
component Postable(post arn.Postable, highlightAuthorID string)
|
||||
.post.mountable(data-highlight=post.Author().ID == highlightAuthorID)
|
||||
.post-author
|
||||
Avatar(post.Author())
|
||||
|
@ -2,17 +2,4 @@ component PostableList(postables []arn.Postable)
|
||||
.thread
|
||||
.posts
|
||||
each post in postables
|
||||
.post
|
||||
.post-author
|
||||
Avatar(post.Author())
|
||||
|
||||
.post-content
|
||||
p!= aero.Markdown(post.Text())
|
||||
|
||||
.post-toolbar
|
||||
.spacer
|
||||
.post-likes= len(post.Likes())
|
||||
a.post-tool.post-permalink.ajax(href=post.Link(), title="Permalink")
|
||||
Icon("link")
|
||||
|
||||
a.post-link.side-note.ajax(href=post.Link())= post.Title()
|
||||
Postable(post, "")
|
||||
|
@ -1,5 +1,5 @@
|
||||
component Post(post *arn.Post)
|
||||
Postable(post.ToPostable(), nil, "")
|
||||
Postable(post.ToPostable(), "")
|
||||
|
||||
.side-note
|
||||
a.ajax(href=post.Thread().Link())= post.Thread().Title
|
@ -68,6 +68,7 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
|
||||
else
|
||||
each thread in threads
|
||||
ThreadLink(thread)
|
||||
.profile-category.mountable
|
||||
h3
|
||||
a.ajax(href="/+" + viewUser.Nick + "/posts", title="View all posts") Posts
|
||||
if len(posts) == 0
|
||||
@ -78,7 +79,7 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
|
||||
.post-author
|
||||
Avatar(post.Author())
|
||||
.post-content
|
||||
p!= aero.Markdown(post.Text)
|
||||
.mountable!= aero.Markdown(post.Text)
|
||||
.post-toolbar.active
|
||||
.spacer
|
||||
.post-likes= len(post.Likes)
|
||||
|
@ -3,7 +3,7 @@ component Thread(thread *arn.Thread, posts []*arn.Post)
|
||||
|
||||
.thread
|
||||
.posts
|
||||
Postable(thread.ToPostable(), nil, thread.Author().ID)
|
||||
Postable(thread.ToPostable(), thread.Author().ID)
|
||||
|
||||
each post in posts
|
||||
Postable(post.ToPostable(), nil, thread.Author().ID)
|
||||
Postable(post.ToPostable(), thread.Author().ID)
|
||||
|
Loading…
Reference in New Issue
Block a user