summaryrefslogtreecommitdiff
path: root/client/html/post_upload_row.tpl
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2017-03-30 20:50:12 +0200
committerrr- <rr-@sakuya.pl>2017-03-30 20:50:12 +0200
commit77bf3bdc3c0c1b9e5746e0f3f63281360c3e5a03 (patch)
treebd2a8cdf7cb5d2b099191d3ef68648bebdd70c35 /client/html/post_upload_row.tpl
parentc2be365b6e8f4ffe1f3156c0e2e8b553d000cdfd (diff)
client/posts: add option to disable safety ratings
Diffstat (limited to 'client/html/post_upload_row.tpl')
-rw-r--r--client/html/post_upload_row.tpl22
1 files changed, 12 insertions, 10 deletions
diff --git a/client/html/post_upload_row.tpl b/client/html/post_upload_row.tpl
index d62ecaf..a1ea46b 100644
--- a/client/html/post_upload_row.tpl
+++ b/client/html/post_upload_row.tpl
@@ -41,16 +41,18 @@
</header>
<div class='body'>
- <div class='safety'>
- <% for (let safety of ['safe', 'sketchy', 'unsafe']) { %>
- <%= ctx.makeRadio({
- name: 'safety-' + ctx.uploadable.key,
- value: safety,
- text: safety[0].toUpperCase() + safety.substr(1),
- selectedValue: ctx.uploadable.safety,
- }) %>
- <% } %>
- </div>
+ <% if (ctx.enableSafety) { %>
+ <div class='safety'>
+ <% for (let safety of ['safe', 'sketchy', 'unsafe']) { %>
+ <%= ctx.makeRadio({
+ name: 'safety-' + ctx.uploadable.key,
+ value: safety,
+ text: safety[0].toUpperCase() + safety.substr(1),
+ selectedValue: ctx.uploadable.safety,
+ }) %>
+ <% } %>
+ </div>
+ <% } %>
<div class='options'>
<% if (ctx.canUploadAnonymously) { %>