2014-10-04 14:06:44 +02:00
|
|
|
<div class="post-small post-type-<%= post.contentType %> ">
|
2014-11-22 13:10:00 +01:00
|
|
|
|
|
|
|
<% if (canViewPosts) { %>
|
|
|
|
<a class="link"
|
2014-12-20 10:36:29 +01:00
|
|
|
href="<%= util.appendComplexRouteParam('#/post/' + post.id, util.simplifySearchQuery(query)) %>"
|
2014-11-22 13:10:00 +01:00
|
|
|
title="<%= _.map(post.tags, function(tag) { return '#' + tag.name; }).join(', ') %>">
|
|
|
|
<% } else { %>
|
|
|
|
<span class="link">
|
|
|
|
<% } %>
|
2014-09-17 18:34:57 +02:00
|
|
|
|
2014-10-05 11:05:34 +02:00
|
|
|
<img width="160" height="160" class="thumb" src="/data/thumbnails/160x160/posts/<%= post.name %>" alt="<%= post.idMarkdown %>"/>
|
2014-09-28 11:33:25 +02:00
|
|
|
|
2014-10-04 18:25:27 +02:00
|
|
|
<% if (post.favoriteCount || post.score || post.commentCount) { %>
|
2014-09-28 11:33:25 +02:00
|
|
|
<div class="info">
|
|
|
|
<ul>
|
|
|
|
<% if (post.favoriteCount) { %>
|
|
|
|
<li>
|
2014-10-04 18:25:27 +02:00
|
|
|
<i class="fa fa-heart"></i>
|
2014-09-28 11:33:25 +02:00
|
|
|
<%= post.favoriteCount %>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
2014-09-28 15:21:25 +02:00
|
|
|
|
|
|
|
<% if (post.score) { %>
|
|
|
|
<li>
|
2014-10-04 18:25:27 +02:00
|
|
|
<i class="fa fa-thumbs-up"></i>
|
2014-09-28 15:21:25 +02:00
|
|
|
<%= post.score %>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
2014-10-04 18:25:27 +02:00
|
|
|
|
|
|
|
<% if (post.commentCount) { %>
|
|
|
|
<li>
|
|
|
|
<i class="fa fa-comments"></i>
|
|
|
|
<%= post.commentCount %>
|
|
|
|
</li>
|
|
|
|
<% } %>
|
2014-09-28 11:33:25 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
2014-11-22 13:10:00 +01:00
|
|
|
|
|
|
|
<% if (canViewPosts) { %>
|
|
|
|
</a>
|
|
|
|
<% } else { %>
|
|
|
|
</span>
|
|
|
|
<% } %>
|
2014-10-09 23:46:32 +02:00
|
|
|
|
|
|
|
<div class="action">
|
|
|
|
<button>Action</button>
|
|
|
|
</div>
|
2014-10-04 14:06:44 +02:00
|
|
|
</div>
|