From d7feb2792c717c1d3bda19bb257dd5b82f78fbd9 Mon Sep 17 00:00:00 2001 From: Shyam Sunder Date: Tue, 5 Feb 2019 00:32:04 -0500 Subject: [PATCH] client/posts: Add some UI icons --- client/html/post_readonly_sidebar.tpl | 5 +++-- 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] %> (<%- ctx.post.canvasWidth %>x<%- ctx.post.canvasHeight %>) - <% if (ctx.post.flags.includes('sound')) { %> - + <% if (ctx.post.flags.length) { %><% if (ctx.post.flags.includes('loop')) { %><% } %><% if (ctx.post.flags.includes('sound')) { %><% } %> <% } %> 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) %> - <%- post.type %> + <% if (post.type == 'video' || post.type == 'flash' || post.type == 'animation') { %> + + <% } else { %> + <%- post.type %> + <% } %> <% if (post.score || post.favoriteCount || post.commentCount) { %>