+
+ {% if op.phase or op.progress_total or job.cancellable or op.error or job.result.links or job.result.warning or job.result.left_behind or job.resolution %}
+
+ {% if op.phase or job.cancellable %}
+
+ {% if op.phase %}{% translate op.phase %}{% endif %}
+ {% if job.cancellable %}
+
+ {% endif %}
+
+ {% endif %}
{% if op.progress_total %}
{% widthratio op.progress_done|default:0 op.progress_total 100 as percent %}
-
{% trans "Progress" %}
-
-
-
+
+
{% if progress_bytes %}{{ op.progress_done|default:0|filesizeformat }} / {{ op.progress_total|filesizeformat }}{% else %}{{ op.progress_done|default:0 }} / {{ op.progress_total }}{% endif %}
-
+ {{ percent }}%
+
+
{% endif %}
- {% get_current_timezone as TIME_ZONE %}
- {% blocktrans %}Created ({{ TIME_ZONE }}){% endblocktrans %}{{ op.created_at|date:"Y-m-d H:i:s" }}
- {% if op.started_at %}{% trans "Started" %}{{ op.started_at|date:"Y-m-d H:i:s" }}{% endif %}
- {% if op.finished_at %}{% trans "Finished" %}{{ op.finished_at|date:"Y-m-d H:i:s" }}{% endif %}
- {% if job.result.left_behind %}
- {% trans "Left behind" %}
-
-
- {% for item in job.result.left_behind %}{{ item }} {% endfor %}
-
-
- {% endif %}
- {% if job.result.warning %}
- {% trans "Warning" %}{{ job.result.warning }}
+ {% if op.error %}
+
+ {% bs_icon 'exclamation-triangle' %} {{ op.error }}
+
{% endif %}
{% if job.result.links %}
- {% trans "Results" %}
-
-
-
+ {% trans "Results" %}
+
+ {% endif %}
+ {% if job.result.warning %}
+ {{ job.result.warning }}
+ {% endif %}
+ {% if job.result.left_behind %}
+ {% trans "Left behind" %}
+
+ {% for item in job.result.left_behind %}{{ item }} {% endfor %}
+
{% endif %}
{% if job.resolution %}
- {% trans "Resolution" %}
- {{ job.resolution|state_label }}: {{ job.resolution_note }}
+ {% trans "Resolution" %}
+ {{ job.resolution|state_label }}: {{ job.resolution_note }}
{% endif %}
-
+