Added Repository Quota setting

This commit is contained in:
Johannes Erwerle 2026-04-20 19:03:17 +02:00
parent 755e313c61
commit 3a4f5a0394
10 changed files with 102 additions and 2 deletions

View file

@ -18,6 +18,7 @@
<th>Name</th>
<th>Key</th>
<th>Repo-URL</th>
<th>Quota (used/total)</th>
<th></th>
</thead>
<tbody>
@ -25,7 +26,8 @@
<tr>
<td>{{ repo.name }}</td>
<td><code>{{ repo.truncated_key }}</code></td>
<td><code>{{ repo.repo_url}}</code></td>
<td><code>{{ repo.repo_url }}</code></td>
<td>{% if repo.used_quota < 0 %}not initialized{% else %}{{ repo.used_quota }}/{{ repo.quota }} GB{% endif %}</td>
<td><a href="{% url 'borg_update' pk=repo.pk %}" class="btn btn-warning btn-sm">Edit</a>
<a href="{% url 'borg_delete' pk=repo.pk %}" class="btn btn-danger btn-sm">Delete</a></td>
</tr>