1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/vmbackups/templates/vmbackups/damage_warning.html
catborise 2c8493ba8c fix: a test alert button; damage shown and warned of on restore
Audit of the alerts and backup verification: an operator could learn
that the alert mail or webhook works only from a real failure. Settings
> Alerts gets "Send a test alert", sent at once to the channels saved,
each channel's result shown. A damaged backup's reasons were only in a
tooltip, so not on a touch screen: they show under the badge. A restore
of a backup that a verification found damaged, or of an incremental on
a damaged base (shown as Ready), said nothing: the restore pages warn.
2026-11-19 17:24:18 +03:00

7 lines
651 B
HTML

{% load i18n %}{% load operations %}{% load bootstrap_icons %}{# a restore page: the backup or one it builds on found damaged #}
{% with damaged=backup.damaged_in_chain %}{% if damaged %}
<div class="alert alert-danger" role="alert">{% bs_icon 'exclamation-triangle' %}
{% if damaged == backup %}{% trans "A verification found this backup damaged:" %}{% else %}{% blocktrans with time=damaged.created_at|date:"Y-m-d H:i" %}It builds on the backup taken {{ time }}, which a verification found damaged:{% endblocktrans %}{% endif %}
{{ damaged.damage|words }} {% trans "The restored disks may be damaged too." %}
</div>
{% endif %}{% endwith %}