{% extends "layouts/panel.html" %} {% load i18n %} {% load ravix_ui %} {% block title %}{% blocktrans trimmed with pk=run.pk %}Update run #{{ pk }}{% endblocktrans %}{% endblock %} {% block page_title %}{% blocktrans trimmed with pk=run.pk %}Run #{{ pk }}{% endblocktrans %}{% endblock %} {% block content %}

{% blocktrans trimmed with pk=run.pk get_component_display=run.get_component_display %}Run #{{ pk }} — {{ get_component_display }}{% endblocktrans %}{% if run.slug %} {{ run.slug }}{% endif %} {{ run.get_status_display }}

{{ run.from_version }} → {{ run.to_version }}

{% trans "Back" %}
{% if run.error %}{% endif %} {% if run.recovery %}

{% trans "Recovery / next step" %}

{{ run.recovery }}
{% endif %}

{% trans "Specifications" %}

{% blocktrans trimmed with started_at=run.started_at|jalali_datetime %}Started: {{ started_at }}{% endblocktrans %}{% if run.finished_at %} {% blocktrans trimmed with finished_at=run.finished_at|jalali_datetime %}— Finished: {{ finished_at }}{% endblocktrans %}{% endif %}{% if run.started_by %} {% blocktrans trimmed with started_by=run.started_by %}— By {{ started_by }}{% endblocktrans %}{% endif %}

{% if run.sha256 %}

{% trans "Package SHA-256:" %} {{ run.sha256 }}

{% endif %} {% if run.signer_key_id %}

{% trans "Signer:" %} {{ run.signer_key_id }} {% blocktrans trimmed with signer_label=run.signer_label %}({{ signer_label }}) — the signature confirms the package’s authenticity, not that the code is harmless.{% endblocktrans %}

{% endif %} {% if run.backup.dir %}

{% trans "Backup:" %} {{ run.backup.dir }}

{% endif %} {% if run.parent %}

{% trans "Related to" %} {% blocktrans trimmed with pk=run.parent.pk %}Run #{{ pk }}{% endblocktrans %}

{% endif %} {% if run.migrations_applied %}

{% trans "Applied migrations:" %}

{% endif %}

{% trans "Steps" %}

{% for s in run.steps %}{% empty %}{% endfor %}
{% trans "Step" %}{% trans "Result" %}{% trans "Time" %}{% trans "Details" %}
{{ s.name }}{% if s.ok %}{% trans "Succeeded" %}{% else %}{% trans "Failed" %}{% endif %}{{ s.at }}{{ s.detail }}
—
{% if run.migration_output %}
{% trans "Migration output" %}
{{ run.migration_output }}
{% endif %} {% if can_rollback and can_manage and web_apply %}

{% trans "Roll back to previous version" %}

{% trans "Files and database return to the moment before this upgrade; data recorded after the upgrade will be lost. A backup of the current state is taken before rolling back." %}

{% csrf_token %}
{% endif %} {% endblock %}