{% load dlux_tags %} {# One cell of SystemBackupTable; context: backup, backup_policy, backup_stall_warn_seconds, quiet_for, eta, DLUX_STRINGS. #} {% if backup.is_active %} {{ backup.progress_percent }}% {% if backup.progress_message %}{{ backup.progress_message }}{% endif %} {{ DLUX_STRINGS.sysbackup_last_signal|default:'Last update' }}: {{ quiet_for }}{{ DLUX_STRINGS.sysbackup_seconds_short|default:'s' }} {% if eta is not None %}{{ DLUX_STRINGS.sysbackup_eta_short|default:'~{duration} left'|dlux_format_duration:eta }}{% endif %} {% if quiet_for > backup_stall_warn_seconds %} ยท {{ DLUX_STRINGS.sysbackup_stall_warning|default:'No progress reported. It will be marked failed after the stall timeout.' }} ({{ backup_policy.stall_timeout_minutes }}{{ DLUX_STRINGS.sysbackup_minutes_short|default:'m' }}) {% endif %} {% if backup.next_attempt_at %} {{ DLUX_STRINGS.sysbackup_next_attempt|default:'Next attempt' }}: {{ backup.next_attempt_at|date:'H:i' }} {% endif %} {% elif backup.status == 'failed' %} {% if backup.error %}{{ backup.error|truncatechars:120 }}{% endif %} {% elif backup.duration_seconds is not None %} {{ backup.duration_seconds|dlux_duration }} {% endif %}