client/posts: Add some UI icons
This commit is contained in:
parent
2fdd8cb3ab
commit
d7feb2792c
2 changed files with 8 additions and 3 deletions
|
@ -14,8 +14,9 @@
|
||||||
}[ctx.post.mimeType] %>
|
}[ctx.post.mimeType] %>
|
||||||
</a>
|
</a>
|
||||||
(<%- ctx.post.canvasWidth %>x<%- ctx.post.canvasHeight %>)
|
(<%- ctx.post.canvasWidth %>x<%- ctx.post.canvasHeight %>)
|
||||||
<% if (ctx.post.flags.includes('sound')) { %>
|
<% if (ctx.post.flags.length) { %><!--
|
||||||
<i class='fa fa-volume-up'></i>
|
--><% if (ctx.post.flags.includes('loop')) { %><i class='fa fa-repeat'></i><% } %><!--
|
||||||
|
--><% if (ctx.post.flags.includes('sound')) { %><i class='fa fa-volume-up'></i><% } %>
|
||||||
<% } %>
|
<% } %>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,11 @@
|
||||||
href='<%= ctx.canViewPosts ? ctx.getPostUrl(post.id, ctx.parameters) : '' %>'>
|
href='<%= ctx.canViewPosts ? ctx.getPostUrl(post.id, ctx.parameters) : '' %>'>
|
||||||
<%= ctx.makeThumbnail(post.thumbnailUrl) %>
|
<%= ctx.makeThumbnail(post.thumbnailUrl) %>
|
||||||
<span class='type' data-type='<%- post.type %>'>
|
<span class='type' data-type='<%- post.type %>'>
|
||||||
<%- post.type %>
|
<% if (post.type == 'video' || post.type == 'flash' || post.type == 'animation') { %>
|
||||||
|
<span class='icon'><i class='fa fa-film'></i></span>
|
||||||
|
<% } else { %>
|
||||||
|
<%- post.type %>
|
||||||
|
<% } %>
|
||||||
</span>
|
</span>
|
||||||
<% if (post.score || post.favoriteCount || post.commentCount) { %>
|
<% if (post.score || post.favoriteCount || post.commentCount) { %>
|
||||||
<span class='stats'>
|
<span class='stats'>
|
||||||
|
|
Loading…
Reference in a new issue