backups: Move add repository buttons to the top

When a large number of archives and repositories exist, the add repository
buttons are not easily discover-able by the user.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-08-29 15:58:01 -07:00 committed by James Valleroy
parent d9d9c8167f
commit 20c13936c3
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -56,15 +56,9 @@
{% trans 'Upload and Restore' %}
</a>
<h3>{% trans 'Existing Backups' %}</h3>
{% for repository in repositories %}
{% include "backups_repository.inc" with uuid=repository.uuid %}
{% endfor %}
<a title="{% trans 'Add a backup location' %}"
role="button" class="btn btn-default"
href="{% url 'backups:add-repository' %}">
role="button" class="btn btn-default"
href="{% url 'backups:add-repository' %}">
<span class="fa fa-plus" aria-hidden="true"></span>
{% trans 'Add Backup Location' %}
</a>
@ -76,4 +70,10 @@
{% trans 'Add Remote Backup Location' %}
</a>
<h3>{% trans 'Existing Backups' %}</h3>
{% for repository in repositories %}
{% include "backups_repository.inc" with uuid=repository.uuid %}
{% endfor %}
{% endblock %}