summaryrefslogtreecommitdiff
path: root/templates/mod/edit_page.html
diff options
context:
space:
mode:
authorAppleman1234 <applemansigloo@gmail.com>2016-12-15 18:25:42 +0900
committerGitHub <noreply@github.com>2016-12-15 18:25:42 +0900
commitcae526e65a20f3da2d8884c4d8e8978c54120000 (patch)
tree2954153dd49f616f5018490058ff4bfbd17300d3 /templates/mod/edit_page.html
parentb58fab98147a92c8e6d22f15d23684508b6bb811 (diff)
parent5feae402cb55d49963bfd2c6f5a33d10690ecbc1 (diff)
Merge pull request #79 from lainchan/clean_prod_vichan_update
Merge vichan changes from upstream and changes directly applied to the site.
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>