diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-08-27 02:28:04 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-08-27 02:28:04 +1000 |
| commit | 6a705fd8c2324b642ac6bfc660d76cff6d5eab62 (patch) | |
| tree | 7f916bebf46f66ed55569ea1456686524aebc192 /templates/mod/rebuild.html | |
| parent | 1dcb385e9e3791d2d3c1d049fe9b8d906539088e (diff) | |
| parent | c919e7362542117f613c2800017ae89c269a07b5 (diff) | |
Merge branch 'mod-rewrite'
Conflicts:
inc/lib/Twig/Extensions/Extension/Tinyboard.php
install.php
mod.php
stylesheets/style.css
templates/index.html
templates/page.html
templates/thread.html
Diffstat (limited to 'templates/mod/rebuild.html')
| -rw-r--r-- | templates/mod/rebuild.html | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/templates/mod/rebuild.html b/templates/mod/rebuild.html new file mode 100644 index 00000000..7c6b28ba --- /dev/null +++ b/templates/mod/rebuild.html @@ -0,0 +1,71 @@ +<form style="width:300px;margin:auto" action="?/rebuild" method="post"> + <ul id="rebuild"> + <li style="margin-bottom:8px"> + <input type="checkbox" name="rebuild_all" id="rebuild_all" onchange="toggleall(this.checked)"> + <label for="rebuild_all"><strong>{% trans 'Toggle all' %}</strong></label> + <script> + function toggleall(val) { + /* TODO: something more suitable for all browsers? */ + var elements = document.getElementById('rebuild').querySelectorAll('input'); + for (i in elements) { + elements[i].checked = val; + } + } + </script> + </li> + <li> + <input type="checkbox" name="rebuild_cache" id="rebuild_cache" checked> + <label for="rebuild_cache">{% trans 'Flush cache' %}</label> + </li> + <li> + <input type="checkbox" name="rebuild_javascript" id="rebuild_javascript" checked> + <label for="rebuild_javascript">{% trans 'Rebuild Javascript' %}</label> + </li> + <li> + <input type="checkbox" name="rebuild_index" id="rebuild_index" checked> + <label for="rebuild_index">{% trans 'Rebuild index pages' %}</label> + </li> + <li> + <input type="checkbox" name="rebuild_thread" id="rebuild_thread" checked> + <label for="rebuild_thread">{% trans 'Rebuild thread pages' %}</label> + </li> + <li> + <input type="checkbox" name="rebuild_themes" id="rebuild_themes" checked> + <label for="rebuild_themes">{% trans 'Rebuild themes' %}</label> + </li> + <li> + <input type="checkbox" name="rebuild_posts" id="rebuild_posts"> + <label for="rebuild_posts">{% trans 'Rebuild replies' %}</label> + </li> + </ul> + + <hr> + + <ul id="boards"> + <li style="margin-bottom:8px"> + <input type="checkbox" name="boards_all" id="boards_all" onchange="toggleallboards(this.checked)" checked> + <label for="boards_all"><strong>{% trans 'All boards' %}</strong></label> + <script> + function toggleallboards(val) { + /* TODO: something more suitable for all browsers? */ + var elements = document.getElementById('boards').querySelectorAll('input'); + for (i in elements) { + elements[i].checked = val; + } + } + </script> + </li> + {% for board in boards %} + <li> + <input type="checkbox" name="board_{{ board.uri }}" id="board-{{ board.uri }}" checked> + <label for="board-{{ board.uri }}"> + {{ config.board_abbreviation|sprintf(board.uri) }} - {{ board.title|e }} + </label> + </li> + {% endfor %} + </ul> + + <p style="text-align:center"> + <input type="submit" value="{% trans 'Rebuild' %}" name="rebuild"> + </p> +</form> |
