mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 01:16:10 +00:00
fix: a backup's files say so on the pool page; Removed VMs names schedules and backups
On a backup target's pool every backup file was "Not used on this host" and listed with the unused volumes, though its deletion there is refused: it is deleted with its backup. The column now says "Backup of <VM>" and counts it as in use. A VM kept on the Removed VMs page for its schedules or backups alone showed no owner and no reason; its row now names its schedules and counts its backups.
This commit is contained in:
parent
aeef837afa
commit
981ff7b294
11 changed files with 227 additions and 135 deletions
|
|
@ -35,6 +35,12 @@
|
|||
{% trans "Left" %} <span class="fw-semibold">{{ tombstone.host }}</span>
|
||||
<span class="text-body-secondary">· {% trans "Owners" %}:</span> {{ tombstone.owner_names|join:", "|default:"–" }}
|
||||
</div>
|
||||
{% if tombstone.policy_names or tombstone.backup_count %}
|
||||
<div class="mt-1">
|
||||
{% if tombstone.policy_names %}<span class="text-body-secondary">{% trans "Schedules" %}:</span> {{ tombstone.policy_names|join:", " }}{% endif %}
|
||||
{% if tombstone.backup_count %}{% if tombstone.policy_names %} · {% endif %}{% blocktrans count counter=tombstone.backup_count %}{{ counter }} backup{% plural %}{{ counter }} backups{% endblocktrans %}{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="text-body-secondary mt-1">
|
||||
{% trans "Removed" %} <span class="text-nowrap">{{ tombstone.removed|date:"Y-m-d H:i" }}</span>
|
||||
· {% trans "expires" %} <span class="text-nowrap">{{ tombstone.expires|date:"Y-m-d H:i" }}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue