summaryrefslogtreecommitdiff
path: root/templates/mod/edit_page.html
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2016-09-25 16:34:47 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2016-09-25 16:34:47 +0900
commita3b9c4405c6d4cca2a70dbb400e3ba3f65e7ea04 (patch)
tree5a2ebdb801748586e3fde7c12cbeda169b2c3e31 /templates/mod/edit_page.html
parent9436524a306c8e3d6d8a6ed195e2a3c56d5cde39 (diff)
parenta4b619ae5eaab5755dc215a496854dee8f7ce395 (diff)
Merged lainchan with vichan master at 25/9/2016 a4b619ae5eaab5755dc215a496854dee8f7ce395 @czaks czaks committed on GitHub 2 days ago
Diffstat (limited to 'templates/mod/edit_page.html')
-rw-r--r--templates/mod/edit_page.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/mod/edit_page.html b/templates/mod/edit_page.html
new file mode 100644
index 00000000..3d132767
--- /dev/null
+++ b/templates/mod/edit_page.html
@@ -0,0 +1,29 @@
+<div style="text-align:center">
+<form method="POST">
+ <input name="token" value="{{ token }}" type="hidden">
+ <table>
+ <tr>
+ <th>{% trans %}Markup method{% endtrans %}
+ {% set allowed_html = config.allowed_html %}
+ {% trans %}<p class="unimportant">"markdown" is provided by <a href="http://parsedown.org/">parsedown</a>. Note: images disabled.</p>
+ <p class="unimportant">"html" allows the following tags:<br/>{{ allowed_html }}</p>
+ <p class="unimportant">"infinity" is the same as what is used in posts.</p>
+ <p class="unimportant">This page will not convert between formats,<br/>choose it once or do the conversion yourself!</p>{% endtrans %}
+ </th>
+ <td>
+ <select name="method">
+ {% for markup in ['markdown', 'html', 'infinity'] %}
+ <option value="{{ markup }}" {% if page.type == markup %}selected{% endif %}>{{ markup }}</option>
+ {% endfor %}
+ </select>
+ </td></tr>
+ <tr><th>{% trans %}Page content{% endtrans %}
+ <br/>
+ <span class="unimportant">{% trans %}Page will appear at:{% endtrans %}
+ {% if board %} <a href="/{{ board.uri }}/{{ page.name }}.html">{{ config.domain }}/{{ board.uri }}/{{ page.name }}.html</a>
+ {% else %} <a href="/{{ page.name }}.html">{{ config.site }}/{{ page.name }}.html</a>
+ {% endif %}</span></th><td><textarea name="content" style="height:500px;width:500px">{{content}}</textarea></td><tr>
+ </table>
+ <input type="submit" value="Save page">
+</form>
+</div>