diff options
| author | rr- <rr-@sakuya.pl> | 2016-11-11 22:35:58 +0100 |
|---|---|---|
| committer | rr- <rr-@sakuya.pl> | 2016-11-11 22:35:58 +0100 |
| commit | 143a015473b37b5028fa71af059d2fd487e97712 (patch) | |
| tree | a64523f68ec2f60365107254a810d56d074c6a75 /client/html/post_upload_row.tpl | |
| parent | 20a5a58734fb43f030457dd82857d0420959739e (diff) | |
client/posts: control over video loops on upload
Also loop videos by default
Diffstat (limited to 'client/html/post_upload_row.tpl')
| -rw-r--r-- | client/html/post_upload_row.tpl | 30 |
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> |