client/home: show who featured the post
This commit is contained in:
parent
abef6e5c35
commit
aa71ccb02c
|
@ -22,8 +22,8 @@
|
|||
width: auto
|
||||
|
||||
aside
|
||||
margin-top: 0.2em
|
||||
margin-bottom: 1em
|
||||
margin-bottom: 0.5em
|
||||
font-size: 90%
|
||||
|
||||
footer
|
||||
font-size: 80%
|
||||
|
|
|
@ -38,7 +38,13 @@
|
|||
<% if (ctx.featuredPost) { %>
|
||||
<aside>
|
||||
<%= ctx.makePostLink(ctx.featuredPost.id) %>
|
||||
uploaded
|
||||
•
|
||||
Featured
|
||||
<%= ctx.makeRelativeTime(ctx.featuringTime) %>
|
||||
by
|
||||
<%= ctx.makeUserLink(ctx.featuringUser) %>
|
||||
•
|
||||
Posted
|
||||
<%= ctx.makeRelativeTime(ctx.featuredPost.creationTime) %>
|
||||
by
|
||||
<%= ctx.makeUserLink(ctx.featuredPost.user) %>
|
||||
|
|
|
@ -31,6 +31,8 @@ class HomeController {
|
|||
diskUsage: response.diskUsage,
|
||||
postCount: response.postCount,
|
||||
featuredPost: response.featuredPost,
|
||||
featuringUser: response.featuringUser,
|
||||
featuringTime: response.featuringTime,
|
||||
});
|
||||
},
|
||||
response => {
|
||||
|
|
Loading…
Reference in New Issue