diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-12 19:38:03 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-12 19:38:03 +0200 |
| commit | ae7ef10b67737f08a86743f687bca30a12e9e17a (patch) | |
| tree | 056539ab76b801559dc8d07ee6599220e2bd8e07 /templates/backups | |
| parent | architecture (diff) | |
| download | minecraft-ui-ae7ef10b67737f08a86743f687bca30a12e9e17a.tar.gz minecraft-ui-ae7ef10b67737f08a86743f687bca30a12e9e17a.zip | |
first stable
Diffstat (limited to '')
| -rw-r--r-- | templates/backups/list.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/templates/backups/list.html b/templates/backups/list.html new file mode 100644 index 0000000..d7508eb --- /dev/null +++ b/templates/backups/list.html | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | {% extends "base.html" %} | ||
| 2 | {% block content %} | ||
| 3 | <div class="page-header"> | ||
| 4 | <h1>Backups: {{ instance_name }}</h1> | ||
| 5 | <div class="actions"> | ||
| 6 | <form action="/instances/{{ instance_id }}/backups/create" method="post" style="display:inline"> | ||
| 7 | <button type="submit" class="btn-ok">Create Backup</button> | ||
| 8 | </form> | ||
| 9 | <a href="/instances/{{ instance_id }}/world/export" class="btn">Export World</a> | ||
| 10 | <a href="/instances" class="btn">Back to Instances</a> | ||
| 11 | </div> | ||
| 12 | </div> | ||
| 13 | |||
| 14 | {% if backups.is_empty() %} | ||
| 15 | <div class="card card-muted"> | ||
| 16 | <p>No backups yet. Create one to safeguard your world.</p> | ||
| 17 | </div> | ||
| 18 | {% else %} | ||
| 19 | <table class="table"> | ||
| 20 | <thead> | ||
| 21 | <tr> | ||
| 22 | <th>Filename</th> | ||
| 23 | <th>Created</th> | ||
| 24 | <th>Actions</th> | ||
| 25 | </tr> | ||
| 26 | </thead> | ||
| 27 | <tbody> | ||
| 28 | {% for backup in backups %} | ||
| 29 | <tr> | ||
| 30 | <td>{{ backup.filename }}</td> | ||
| 31 | <td>{{ backup.created_at }}</td> | ||
| 32 | <td> | ||
| 33 | <a href="/backups/{{ backup.id }}/download" class="btn-sm">Download</a> | ||
| 34 | <form action="/backups/{{ backup.id }}/restore" method="post" style="display:inline"> | ||
| 35 | <button type="submit" class="btn-sm btn-ok">Restore</button> | ||
| 36 | </form> | ||
| 37 | </td> | ||
| 38 | </tr> | ||
| 39 | {% endfor %} | ||
| 40 | </tbody> | ||
| 41 | </table> | ||
| 42 | {% endif %} | ||
| 43 | {% endblock %} | ||
