{% load i18n %} {% with block=job.data.proxbox_sync %} {% if block %} {% with summary=block.response.runtime_summary %}
{% trans "Proxbox sync summary" %}
{% if block.runtime_seconds is not None %}
{% trans "Job runtime" %}
{{ block.runtime_seconds|floatformat:1 }}s
{% endif %} {% if summary %} {% if summary.endpoint_count is not None %}
{% trans "Synced endpoints" %}
{{ summary.endpoint_count }}
{% endif %} {% if summary.endpoint_runtime_seconds is not None %}
{% trans "Endpoint runtime" %}
{{ summary.endpoint_runtime_seconds|floatformat:1 }}s
{% endif %} {% if summary.other_runtime_seconds is not None %}
{% trans "Other runtime" %}
{{ summary.other_runtime_seconds|floatformat:1 }}s
{% endif %} {% endif %} {% if block.params.sync_types %}
{% trans "Sync types" %}
{{ block.params.sync_types|join:", " }}
{% endif %}
{% endwith %} {% if block.response.endpoint_runtimes %} {% for endpoint_runtime in block.response.endpoint_runtimes %}
{% if endpoint_runtime.endpoint_name %} {{ endpoint_runtime.endpoint_name }} {% else %} {% trans "Proxmox endpoint" %} {{ endpoint_runtime.endpoint_id }} {% endif %}

{% trans "Endpoint runtime" %}: {{ endpoint_runtime.runtime_seconds|floatformat:1 }}s {% if endpoint_runtime.endpoint_id %} ({% trans "ID" %} {{ endpoint_runtime.endpoint_id }}) {% endif %}

{% if endpoint_runtime.phases %} {% for phase in endpoint_runtime.phases %} {% endfor %}
{% trans "Stage" %} {% trans "Status" %} {% trans "Summary" %} {% trans "Runtime" %}
{{ phase.label }} {% if phase.status == "success" %} {% trans "Success" %} {% elif phase.status == "warning" %} {% trans "Warning" %} {% else %} {{ phase.status }} {% endif %} {{ phase.summary }} {% if phase.runtime_seconds is not None and phase.runtime_seconds != "" %} {{ phase.runtime_seconds|floatformat:1 }}s {% else %} — {% endif %}
{% endif %}
{% endfor %} {% elif block.response.stages %}
{% trans "Proxbox sync stages" %}

{% trans "Stage breakdown" %}:

{% for stage in block.response.stages %} {% endfor %}
{% trans "Stage" %} {% trans "Runtime" %}
{{ stage.sync_type }} {% if stage.runtime_seconds is not None and stage.runtime_seconds != "" %} {{ stage.runtime_seconds|floatformat:1 }}s {% else %} — {% endif %}
{% endif %} {% endif %} {% endwith %}