The version of vichan running on lainchan.org
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

73 行
2.5KB

  1. <form style="width:300px;margin:auto" action="?/rebuild" method="post">
  2. <input type="hidden" name="token" value="{{ token }}">
  3. <ul id="rebuild">
  4. <li style="margin-bottom:8px">
  5. <input type="checkbox" name="rebuild_all" id="rebuild_all" onchange="toggleall(this.checked)">
  6. <label for="rebuild_all"><strong>{% trans 'Toggle all' %}</strong></label>
  7. <script>
  8. function toggleall(val) {
  9. /* TODO: something more suitable for all browsers? */
  10. var elements = document.getElementById('rebuild').querySelectorAll('input');
  11. for (i in elements) {
  12. elements[i].checked = val;
  13. }
  14. }
  15. </script>
  16. </li>
  17. <li>
  18. <input type="checkbox" name="rebuild_cache" id="rebuild_cache" checked>
  19. <label for="rebuild_cache">{% trans 'Flush cache' %}</label>
  20. </li>
  21. <li>
  22. <input type="checkbox" name="rebuild_javascript" id="rebuild_javascript" checked>
  23. <label for="rebuild_javascript">{% trans 'Rebuild Javascript' %}</label>
  24. </li>
  25. <li>
  26. <input type="checkbox" name="rebuild_index" id="rebuild_index" checked>
  27. <label for="rebuild_index">{% trans 'Rebuild index pages' %}</label>
  28. </li>
  29. <li>
  30. <input type="checkbox" name="rebuild_thread" id="rebuild_thread" checked>
  31. <label for="rebuild_thread">{% trans 'Rebuild thread pages' %}</label>
  32. </li>
  33. <li>
  34. <input type="checkbox" name="rebuild_themes" id="rebuild_themes" checked>
  35. <label for="rebuild_themes">{% trans 'Rebuild themes' %}</label>
  36. </li>
  37. <li>
  38. <input type="checkbox" name="rebuild_posts" id="rebuild_posts">
  39. <label for="rebuild_posts">{% trans 'Rebuild replies' %}</label>
  40. </li>
  41. </ul>
  42. <hr>
  43. <ul id="boards">
  44. <li style="margin-bottom:8px">
  45. <input type="checkbox" name="boards_all" id="boards_all" onchange="toggleallboards(this.checked)" checked>
  46. <label for="boards_all"><strong>{% trans 'All boards' %}</strong></label>
  47. <script>
  48. function toggleallboards(val) {
  49. /* TODO: something more suitable for all browsers? */
  50. var elements = document.getElementById('boards').querySelectorAll('input');
  51. for (i in elements) {
  52. elements[i].checked = val;
  53. }
  54. }
  55. </script>
  56. </li>
  57. {% for board in boards %}
  58. <li>
  59. <input type="checkbox" name="board_{{ board.uri }}" id="board-{{ board.uri }}" checked>
  60. <label for="board-{{ board.uri }}">
  61. {{ config.board_abbreviation|sprintf(board.uri) }} - {{ board.title|e }}
  62. </label>
  63. </li>
  64. {% endfor %}
  65. </ul>
  66. <p style="text-align:center">
  67. <input type="submit" value="{% trans 'Rebuild' %}" name="rebuild">
  68. </p>
  69. </form>