65 lines
2.2 KiB
HTML
65 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<nav class="level">
|
|
<div class="level-left">
|
|
<h1 class="level-item">Your Borg Repositories</h1>
|
|
</div>
|
|
<div class="level-right">
|
|
<a class="level-item button is-primary" href="{% url 'borg_add' %}" role="button">Add Repository</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<section class="section">
|
|
<p>Create a borg repository by specifying a name and the SSH public key that is allowed to access this repository. The name is only for your convenience. To set up the repository please follow the <a href="https://borgbackup.readthedocs.io/en/stable/">BorgBackup documentation</a>. There is also a <a href="https://borgbackup.readthedocs.io/en/stable/quickstart.html">Quick start guide</a> available.
|
|
<b>Always use encrypted backups!</b></p>
|
|
</section>
|
|
|
|
<section class="section">
|
|
<table class="table is-striped is-fullwidth is-hoverable">
|
|
<thead>
|
|
<th>Name</th>
|
|
<th>Key</th>
|
|
<th>Repo-URL</th>
|
|
<th>Quota (used/total)</th>
|
|
<th></th>
|
|
</thead>
|
|
<tbody>
|
|
{% for repo in object_list %}
|
|
<tr>
|
|
<td>{{ repo.name }}</td>
|
|
<td style="word-break: break-all"><code>{{ repo.truncated_key }}</code></td>
|
|
<td style="word-break: break-all"><code>{{ repo.repo_url }}</code></td>
|
|
<td>{% if repo.used_quota < 0 %}not initialized{% else %}{{ repo.used_quota }}/{{ repo.quota }} GB{% endif %}</td>
|
|
<td>
|
|
<div class="field is-grouped">
|
|
<a href="{% url 'borg_update' pk=repo.pk %}" class="button is-warning is-small">Edit</a>
|
|
<a href="{% url 'borg_delete' pk=repo.pk %}" class="button is-danger is-small">Delete</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
{% if BORG_SERVER_PUBKEYS %}
|
|
<section class="section">
|
|
<div class="card">
|
|
<header class="card-header">
|
|
<p class="card-header-title">Borg Server Public Keys</p>
|
|
</header>
|
|
<div class="card-content">
|
|
{% for key, fingerprint in BORG_SERVER_PUBKEYS %}
|
|
<span style="word-break: break-all"><code>{{ key }}</code></span><br>
|
|
<span style="word-break: break-all"><code>{{ fingerprint }}</code></span>
|
|
{% if not forloop.last %}
|
|
<hr>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|