summaryrefslogtreecommitdiff
path: root/templates/mod/edit_post_form.html
diff options
context:
space:
mode:
authorMarcin Łabanowski <marcin@6irc.net>2013-01-26 15:08:48 +0100
committerMarcin Łabanowski <marcin@6irc.net>2013-01-26 15:08:48 +0100
commite6b9bad788a6d9ae5f203b999925b9368a77536c (patch)
tree5d63bffd2418701b8f703050c9f289da74c0be35 /templates/mod/edit_post_form.html
parent9b7b1c996f8800efc533dd11a82dffcefdeb726e (diff)
parentdb1b50cfc3a7f3b45891b0ff69db4892b0e6929e (diff)
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts: mod.php
Diffstat (limited to 'templates/mod/edit_post_form.html')
-rw-r--r--templates/mod/edit_post_form.html10
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/mod/edit_post_form.html b/templates/mod/edit_post_form.html
index 22fa40cb..146e725b 100644
--- a/templates/mod/edit_post_form.html
+++ b/templates/mod/edit_post_form.html
@@ -32,8 +32,16 @@
{% trans %}Comment{% endtrans %}
</th>
<td>
- <textarea name="body" id="body" rows="5" cols="35">{{ post.body_nomarkup }}</textarea>
+ <textarea name="body" id="body" rows="8" cols="35">{% if raw %}{{ post.body | e }}{% else %}{{ post.body_nomarkup }}{% endif %}</textarea>
</td>
</tr>
</table>
+ <p style="text-align:center">
+ {% if raw %}
+ {% trans %}Currently editing raw HTML.{% endtrans %}
+ <a href="?/{{ board }}/edit/{{ post.id }}">{% trans %}Edit markup instead?{% endtrans %}</a>
+ {% else %}
+ <a href="?/{{ board }}/edit_raw/{{ post.id }}">{% trans %}Edit raw HTML instead?{% endtrans %}</a>
+ {% endif %}
+ </p>
</form>