summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMichael <savetheinternet@tinyboard.org>2013-01-18 23:44:44 -0800
committerMichael <savetheinternet@tinyboard.org>2013-01-18 23:44:44 -0800
commit5c4421b4fd48d082ad35aff1bfc642e9e4047aad (patch)
tree51ec3acc376e5f4be3587fa3c2861a76abfda8a8 /templates
parentaccc3992f324da39f7725971cff86d080c8f9177 (diff)
parent0da1c18a7ff2328a3cdd422e3f67d4b4bf403fb5 (diff)
Merge pull request #95 from Macil/nosubject
Add field_disable_subject and field_disable_reply_subject config options
Diffstat (limited to 'templates')
-rw-r--r--templates/post_form.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 8b7350c7..aa051f5f 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -27,12 +27,18 @@
</td>
</tr>{% endif %}
<tr>
- <th>
+ {% if not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<th>
{% trans %}Subject{% endtrans %}
{{ antibot.html() }}
</th>
<td>
<input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off">
+ {% else %}<th>
+ {% trans %}Submit{% endtrans %}
+ {{ antibot.html() }}
+ </th>
+ <td>
+ {% endif %}
<input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />{% if config.spoiler_images %} <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label>{% endif %}
</td>
</tr>