mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-12 04:52:45 +00:00
- integrate remote repositories into backups index page - remove, mount and unmount repositories via UI Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
105 lines
2.9 KiB
HTML
105 lines
2.9 KiB
HTML
{% extends "base.html" %}
|
|
{% comment %}
|
|
#
|
|
# This file is part of FreedomBox.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
# License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block page_head %}
|
|
<style type="text/css">
|
|
.share-operations form {
|
|
display: inline-block;
|
|
}
|
|
.share-operations {
|
|
text-align: right;
|
|
}
|
|
.mount-error {
|
|
padding: 0px 10px 0px 10px;
|
|
color: orange;
|
|
}
|
|
.mount-success {
|
|
padding: 0px 10px 0px 10px;
|
|
color: black;
|
|
}
|
|
.inline-block {
|
|
display: inline-block;
|
|
}
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>{{ title }}</h2>
|
|
|
|
{% for paragraph in description %}
|
|
<p>{{ paragraph|safe }}</p>
|
|
{% endfor %}
|
|
|
|
<h3>{% trans 'Existing backups' %}</h3>
|
|
|
|
{% if not archives %}
|
|
<p>{% trans 'No archives currently exist.' %}</p>
|
|
{% else %}
|
|
<table class="table table-bordered table-condensed table-striped"
|
|
id="archives-list">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ box_name }} storage</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{% for archive in archives %}
|
|
<tr id="archive-{{ archive.name }}" class="archive">
|
|
<td class="archive-name">{{ archive.name }}</td>
|
|
<td class="archive-operations">
|
|
<a class="archive-export btn btn-sm btn-default" target="_blank"
|
|
href="{% url 'backups:export-and-download' archive.name %}">
|
|
{% trans "Download" %}
|
|
</a>
|
|
<a class="archive-export btn btn-sm btn-default"
|
|
href="{% url 'backups:restore-archive' archive.name %}">
|
|
{% trans "Restore" %}
|
|
</a>
|
|
<a class="archive-delete btn btn-sm btn-default"
|
|
href="{% url 'backups:delete' archive.name %}">
|
|
<span class="glyphicon glyphicon-trash" aria-hidden="true">
|
|
</span>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% for uuid,location in remote_archives.items %}
|
|
{% include "backups_location.inc" %}
|
|
{% endfor %}
|
|
|
|
<br />
|
|
|
|
<a title="{% trans 'Create new repository' %}"
|
|
role="button" class="btn btn-primary"
|
|
href="{% url 'backups:location-add' %}">
|
|
{% trans '+ Add Remote Repository' %}
|
|
</a>
|
|
|
|
{% endblock %}
|