diff --git a/instances/templates/instance.html b/instances/templates/instance.html index 24b817f6..67734a52 100644 --- a/instances/templates/instance.html +++ b/instances/templates/instance.html @@ -107,6 +107,11 @@ {% endif %} + {% if backups %} +
| {% trans "Time" %} | {% trans "Target" %} | {% trans "Consistency" %} | {% trans "Size" %} | {% trans "State" %} |
|---|---|---|---|---|
| {{ backup.created_at|date:"Y-m-d H:i" }} | +{{ backup.target.name }} | +{{ backup.get_consistency_display }} | +{% if backup.size %}{{ backup.size|filesizeformat }}{% else %}–{% endif %} | ++ {% if backup.state == "ready" %}{% trans "Ready" %} + {% elif backup.state == "creating" %}{% trans "Creating" %} + {% elif backup.state == "deleting" %}{% trans "Deleting" %} + {% else %}{% trans "Failed" %}{% endif %} + {% if backup.operation_id %}{% trans "Job" %}{% endif %} + | +
{% trans "No backup of this VM yet." %}
+ {% endif %} +