summaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-11-11 22:35:58 +0100
committerrr- <rr-@sakuya.pl>2016-11-11 22:35:58 +0100
commit143a015473b37b5028fa71af059d2fd487e97712 (patch)
treea64523f68ec2f60365107254a810d56d074c6a75 /client/html
parent20a5a58734fb43f030457dd82857d0420959739e (diff)
client/posts: control over video loops on upload
Also loop videos by default
Diffstat (limited to 'client/html')
-rw-r--r--client/html/post_upload_row.tpl30
1 files changed, 21 insertions, 9 deletions
diff --git a/client/html/post_upload_row.tpl b/client/html/post_upload_row.tpl
index 0e61212..25ff3ae 100644
--- a/client/html/post_upload_row.tpl
+++ b/client/html/post_upload_row.tpl
@@ -44,13 +44,25 @@
<% } %>
</div>
- <% if (ctx.canUploadAnonymously) { %>
- <div class='anonymous'>
- <%= ctx.makeCheckbox({
- text: 'Upload anonymously',
- name: 'anonymous',
- checked: ctx.uploadable.anonymous,
- }) %>
- </div>
- <% } %>
+ <div class='options'>
+ <% if (ctx.canUploadAnonymously) { %>
+ <div class='anonymous'>
+ <%= ctx.makeCheckbox({
+ text: 'Upload anonymously',
+ name: 'anonymous',
+ checked: ctx.uploadable.anonymous,
+ }) %>
+ </div>
+ <% } %>
+
+ <% if (['video'].includes(ctx.uploadable.type)) { %>
+ <div class='loop-video'>
+ <%= ctx.makeCheckbox({
+ text: 'Loop video',
+ name: 'loop-video',
+ checked: true,
+ }) %>
+ </div>
+ <% } %>
+ </div>
</li>