summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Walker <mike@barrucadu.co.uk>2014-11-13 00:19:44 +0000
committerMichael Walker <mike@barrucadu.co.uk>2014-11-13 00:19:44 +0000
commitc1c8e387f6bee881a6359330b41cfb5961c74f4a (patch)
treeed89a6ada94386da61086ead64546b08bf13cfc0
parent1cf546d363284ce9aa28d0f9277db07bd7404501 (diff)
Allow the comment box to be disabled in the post form
-rw-r--r--templates/post_form.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 6af5e206..e9707cb9 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -9,6 +9,9 @@
{% endif %}
{% if mod %}<input type="hidden" name="mod" value="1">{% endif %}
<table>
+ {% if id %}<tr>
+ <td colspan="2"><div class="banner">{% trans %}Posting mode: Reply{% endtrans %} <a class="unimportant" href="{{ return }}">[{% trans %}Return{% endtrans %}]</a></div></td>
+ </tr>{% endif %}
{% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
<th>
{% trans %}Name{% endtrans %}
@@ -52,7 +55,7 @@
</td>
</tr>
{% endif %}
- <tr>
+ {% if not config.field_disable_comment or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
<th>
{% trans %}Comment{% endtrans %}
{{ antibot.html() }}
@@ -66,7 +69,7 @@
{% endif %}
{% endif %}
</td>
- </tr>
+ </tr>{% endif %}
{% if config.recaptcha %}
<tr>
<th>