2012-04-15 12:06:24 +02:00
|
|
|
<form style="width:300px;margin:auto" action="?/rebuild" method="post">
|
2013-09-23 08:48:56 +02:00
|
|
|
<input type="hidden" name="token" value="{{ token }}">
|
2012-04-14 14:28:21 +02:00
|
|
|
<ul id="rebuild">
|
|
|
|
<li style="margin-bottom:8px">
|
|
|
|
<input type="checkbox" name="rebuild_all" id="rebuild_all" onchange="toggleall(this.checked)">
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="rebuild_all"><strong>{% trans 'Toggle all' %}</strong></label>
|
2012-04-14 14:28:21 +02:00
|
|
|
<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>
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="rebuild_cache">{% trans 'Flush cache' %}</label>
|
2012-04-14 14:28:21 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<input type="checkbox" name="rebuild_javascript" id="rebuild_javascript" checked>
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="rebuild_javascript">{% trans 'Rebuild Javascript' %}</label>
|
2012-04-14 14:28:21 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<input type="checkbox" name="rebuild_index" id="rebuild_index" checked>
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="rebuild_index">{% trans 'Rebuild index pages' %}</label>
|
2012-04-14 14:28:21 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<input type="checkbox" name="rebuild_thread" id="rebuild_thread" checked>
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="rebuild_thread">{% trans 'Rebuild thread pages' %}</label>
|
2012-04-14 14:28:21 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<input type="checkbox" name="rebuild_themes" id="rebuild_themes" checked>
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="rebuild_themes">{% trans 'Rebuild themes' %}</label>
|
2012-04-14 14:28:21 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<input type="checkbox" name="rebuild_posts" id="rebuild_posts">
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="rebuild_posts">{% trans 'Rebuild replies' %}</label>
|
2012-04-14 14:28:21 +02:00
|
|
|
</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>
|
2012-05-05 17:33:10 +02:00
|
|
|
<label for="boards_all"><strong>{% trans 'All boards' %}</strong></label>
|
2012-04-14 14:28:21 +02:00
|
|
|
<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 }}">
|
2012-05-05 17:33:10 +02:00
|
|
|
{{ config.board_abbreviation|sprintf(board.uri) }} - {{ board.title|e }}
|
2012-04-14 14:28:21 +02:00
|
|
|
</label>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p style="text-align:center">
|
2012-05-05 17:33:10 +02:00
|
|
|
<input type="submit" value="{% trans 'Rebuild' %}" name="rebuild">
|
2012-04-14 14:28:21 +02:00
|
|
|
</p>
|
|
|
|
</form>
|