aboutsummaryrefslogtreecommitdiff
path: root/client/html/home_featured_post.tpl
diff options
context:
space:
mode:
authorrr-2016-07-06 00:07:30 +0200
committerrr-2016-07-06 00:07:46 +0200
commit99011b02d76954eac455038713158013bd80a135 (patch)
tree0ec0a9bd66c141b999d0012e96993924344537fd /client/html/home_featured_post.tpl
parent7e62751e4e04dfb895e812ecc46a8dfb9c9beb99 (diff)
client/home: fix missing info on featured post
Diffstat (limited to 'client/html/home_featured_post.tpl')
-rw-r--r--client/html/home_featured_post.tpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/client/html/home_featured_post.tpl b/client/html/home_featured_post.tpl
new file mode 100644
index 0000000..d5fb43e
--- /dev/null
+++ b/client/html/home_featured_post.tpl
@@ -0,0 +1,10 @@
+<% if (ctx.featuredPost) { %>
+ <aside>
+ Featured post: <%= ctx.makePostLink(ctx.featuredPost.id) %>,
+ posted
+ <%= ctx.makeRelativeTime(ctx.featuredPost.creationTime) %>
+ by
+ <%= ctx.makeUserLink(ctx.featuredPost.user) %>
+ </aside>
+<% } %>
+<div class='post-container'></div>

© 2015 - 2026 Jakob L. Kreuze