server+client: added sound flag to video posts

This commit is contained in:
Shyam Sunder
2018-09-13 15:48:13 -04:00
committed by Marcin Kurczewski
parent c8fe0fcdff
commit 2235a72d2f
5 changed files with 23 additions and 3 deletions

View File

@ -50,6 +50,11 @@
name: 'loop',
checked: ctx.post.flags.includes('loop'),
}) %>
<%= ctx.makeCheckbox({
text: 'Sound',
name: 'sound',
checked: ctx.post.flags.includes('sound'),
}) %>
</section>
<% } %>

View File

@ -14,6 +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>
<% } %>
</section>
<section class='upload-info'>