The version of vichan running on lainchan.org
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

35 行
1.6KB

  1. <script type="text/javascript" src="js/jquery.min.js"></script>
  2. <div style="text-align:center">
  3. <p class="unimportant">
  4. {% if board %}
  5. {% set page_max = config.pages_max %}
  6. {% trans %}This page allows you to create static pages for your board. The limit is {{ page_max }} pages per board. You will still have to link to your pages somewhere in your board, for example in a sticky or in the board's announcement. To make links in the board's announcement, use &lt;a&gt; HTML tags.{% endtrans %}
  7. {% else %}
  8. {% trans %}This page allows you to create static pages for your imageboard.{% endtrans %}
  9. {% endif %}
  10. <h2>{% trans %}Existing pages{% endtrans %}</h2>
  11. {% if pages %}
  12. <form>
  13. <table style="margin:auto">
  14. <tr><th>{% trans %}URL{% endtrans %}</th><th>{% trans %}Title{% endtrans %}</th><th>{% trans %}Edit{% endtrans %}</th><th>{% trans %}Delete{% endtrans %}</tr>
  15. {% for page in pages %}
  16. <tr><td>{{ page.name }}</td><td>{{ page.title }}</td><td><a href="?/edit_page/{{ page.id }}">{% trans %}Edit{% endtrans %}</a></td><td><a href="?/edit_pages/delete/{{ page.name }}{% if board %}/{{ board }}{% endif %}/{{ page.delete_token }}">{% trans %}Delete{% endtrans %}</a></td>
  17. {% endfor %}
  18. {% else %}
  19. <em>No pages yet!</em>
  20. {% endif %}
  21. </table>
  22. </form>
  23. <hr/>
  24. <h2>{% trans %}Create a new page{% endtrans %}</h2>
  25. <form method="POST">
  26. <input type="hidden" name="token" value="{{ token }}">
  27. <table>
  28. <tr><th>{% trans %}URL{% endtrans %}</th><th>{% trans %}Title{% endtrans %}</th></tr>
  29. <tr><td><input type="text" name="page"></td><td><input type="text" name="title"></td>
  30. </table>
  31. <input type="submit" value="{% trans %}Create{% endtrans %}">
  32. </form>
  33. </div>