diff options
| author | Shyam Sunder <sgsunder1@gmail.com> | 2019-02-05 00:32:04 -0500 |
|---|---|---|
| committer | Shyam Sunder <sgsunder1@gmail.com> | 2019-02-05 10:56:51 -0500 |
| commit | d7feb2792c717c1d3bda19bb257dd5b82f78fbd9 (patch) | |
| tree | c7578cfc4b099723aaabcad34f1c194014d58b9f /client/html | |
| parent | 2fdd8cb3ab4f45796a4e9dd858caaaf215d19ef3 (diff) | |
client/posts: Add some UI icons
Diffstat (limited to 'client/html')
| -rw-r--r-- | client/html/post_readonly_sidebar.tpl | 5 | ||||
| -rw-r--r-- | client/html/posts_page.tpl | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl index 401ce20..e2975aa 100644 --- a/client/html/post_readonly_sidebar.tpl +++ b/client/html/post_readonly_sidebar.tpl @@ -14,8 +14,9 @@ }[ctx.post.mimeType] %> </a> (<%- ctx.post.canvasWidth %>x<%- ctx.post.canvasHeight %>) - <% if (ctx.post.flags.includes('sound')) { %> - <i class='fa fa-volume-up'></i> + <% if (ctx.post.flags.length) { %><!-- + --><% 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> diff --git a/client/html/posts_page.tpl b/client/html/posts_page.tpl index 6f0665c..f644919 100644 --- a/client/html/posts_page.tpl +++ b/client/html/posts_page.tpl @@ -8,7 +8,11 @@ href='<%= ctx.canViewPosts ? ctx.getPostUrl(post.id, ctx.parameters) : '' %>'> <%= ctx.makeThumbnail(post.thumbnailUrl) %> <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> <% if (post.score || post.favoriteCount || post.commentCount) { %> <span class='stats'> |