Files
ad/molodetz/templates/admin/backups.html
T

28 lines
1.2 KiB
HTML
Raw Normal View History

2026-10-05 09:36:20 +02:00
<!-- retoor <retoor@molodetz.nl> -->
{% extends "admin/base_admin.html" %}
{% block admin_content %}
<h1>Backups</h1>
2026-10-05 09:36:20 +02:00
<form class="actions" method="post" action="/admin/backups">
<select name="target" aria-label="Target">{% for target in ['database', 'uploads', 'keys', 'full'] %}<option value="{{ target }}">{{ target }}</option>{% endfor %}</select>
<button class="button" type="submit">Schedule backup</button>
2026-10-05 09:36:20 +02:00
</form>
<div class="table-wrap">
<table class="admin-table">
<thead><tr><th>Target</th><th>Status</th><th>Size</th><th>Created</th><th></th></tr></thead>
2026-10-05 09:36:20 +02:00
<tbody>
{% for row in backups %}
<tr>
<td>{{ row.target }}</td>
<td><span class="status {{ row.status }}">{{ row.status }}</span>{% if row.error %}<br><span class="muted">{{ row.error }}</span>{% endif %}</td>
<td>{{ row.size_label if row.size_bytes else '' }}</td>
<td>{{ local_dt(row.created_at) }}</td>
<td>{% if can_download and row.status == 'done' %}<a class="button ghost small" href="/admin/backups/{{ row.uid }}/download">Download</a>{% endif %}</td>
</tr>
{% else %}
<tr><td colspan="5" class="muted">No backups yet.</td></tr>
2026-10-05 09:36:20 +02:00
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}