28 lines
693 B
Smarty
28 lines
693 B
Smarty
<li class="post post-type-<%= post.contentType %> ">
|
|
<a class="link"
|
|
title="<%= _.map(post.tags, function(tag) { return '#' + tag.name; }).join(', ') %>"
|
|
href="#/post/<%= post.id %>">
|
|
|
|
<img class="thumb" src="/data/thumbnails/160x160/posts/<%= post.name %>" alt="<%= post.idMarkdown %>"/>
|
|
|
|
<% if (post.favoriteCount || post.score) { %>
|
|
<div class="info">
|
|
<ul>
|
|
<% if (post.favoriteCount) { %>
|
|
<li>
|
|
<i class="fa fa-heart-o"></i>
|
|
<%= post.favoriteCount %>
|
|
</li>
|
|
<% } %>
|
|
|
|
<% if (post.score) { %>
|
|
<li>
|
|
<i class="fa fa-thumbs-o-up"></i>
|
|
<%= post.score %>
|
|
</li>
|
|
<% } %>
|
|
</ul>
|
|
</div>
|
|
<% } %>
|
|
</a>
|
|
</li>
|