aboutsummaryrefslogtreecommitdiff
path: root/client/html/post_upload_row.tpl
diff options
context:
space:
mode:
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) { %>

© 2015 - 2026 Jakob L. Kreuze