| 1 | {% extends "app.html" %} |
| 2 | {% comment %} |
| 3 | # SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | {% endcomment %} |
| 5 | |
| 6 | {% load i18n %} |
| 7 | {% load static %} |
| 8 | {% load extras %} |
| 9 | |
| 10 | {% block page_head %} |
| 11 | <link type="text/css" rel="stylesheet" |
| 12 | href="{% static 'backups/backups.css' %}"> |
| 13 | {% endblock %} |
| 14 | |
| 15 | {% block configuration %} |
| 16 | |
| 17 | <div class="btn-toolbar"> |
| 18 | <a title="{% trans 'Create a new backup' %}" |
| 19 | role="button" class="btn btn-primary" |
| 20 | href="{% url 'backups:create' %}"> |
| 21 | {% icon 'plus' %} |
| 22 | {% trans 'Create Backup' %} |
| 23 | </a> |
| 24 | |
| 25 | <a title="{% trans 'Upload and restore a backup archive' %}" |
| 26 | role="button" class="btn btn-default" |
| 27 | href="{% url 'backups:upload' %}"> |
| 28 | {% icon 'upload' %} |
| 29 | {% trans 'Upload and Restore' %} |
| 30 | </a> |
| 31 | |
| 32 | <a title="{% trans 'Add a backup location' %}" |
| 33 | role="button" class="btn btn-default" |
| 34 | href="{% url 'backups:add-repository' %}"> |
| 35 | {% icon 'plus' %} |
| 36 | {% trans 'Add Backup Location' %} |
| 37 | </a> |
| 38 | |
| 39 | <a title="{% trans 'Add a remote backup location' %}" |
| 40 | role="button" class="btn btn-default" |
| 41 | href="{% url 'backups:add-remote-repository' %}"> |
| 42 | {% icon 'plus' %} |
| 43 | {% trans 'Add Remote Backup Location' %} |
| 44 | </a> |
| 45 | </div> |
| 46 | |
| 47 | <h3>{% trans 'Existing Backups' %}</h3> |
| 48 | |
| 49 | {% for repository in repositories %} |
| 50 | {% include "backups_repository.html" with uuid=repository.uuid %} |
| 51 | {% endfor %} |
| 52 | |
| 53 | {% endblock %} |