diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2013-01-24 19:16:25 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2013-01-24 19:16:25 +1100 |
| commit | 85710249b705c455b2243f450765e458c14cdba6 (patch) | |
| tree | 106cb607d97b1da2921c4ea94d78591cd8e71835 /templates | |
| parent | 85578b7105f7b53e0f45fc886270540b9d07b2f3 (diff) | |
Raw HTML editing
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/mod/edit_post_form.html | 10 |
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> |
