31 lines
629 B
Smarty
31 lines
629 B
Smarty
|
<div id="home">
|
||
|
<h1><%= title %></h1>
|
||
|
|
||
|
<% if (post) { %>
|
||
|
<div class="post">
|
||
|
<%= postContentTemplate({post: post}) %>
|
||
|
<div class="post-footer">
|
||
|
|
||
|
<span class="left">
|
||
|
<a href="#/post/<%= post.id %>">
|
||
|
<%= post.idMarkdown %>
|
||
|
</a>
|
||
|
|
||
|
uploaded
|
||
|
<%= formatRelativeTime(post.uploadTime) %>
|
||
|
</span>
|
||
|
|
||
|
<span class="right">
|
||
|
featured by
|
||
|
<img class="author-avatar"
|
||
|
src="/data/thumbnails/25x25/avatars/<%= post.user.name || '!' %>"
|
||
|
alt="<%= post.user.name || 'Anonymous user' %>"/>
|
||
|
|
||
|
<%= post.user.name || 'Anonymous user' %>
|
||
|
</span>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<% } %>
|
||
|
</div>
|