{% extends "layouts/panel.html" %} {% load i18n %} {% load ravix_ui %} {% block title %}{{ row.name|tr }}{% endblock %} {% block page_title %}{% blocktrans trimmed with name=row.name|tr %}Plugin: {{ name }}{% endblocktrans %}{% endblock %} {% block content %}

{{ row.name|tr }} {{ row.status_label }}

{{ row.description|tr }}

{% trans "Back to the list" %}
{% if row.problems %}{% endif %} {% if integrity_error %}{% endif %} {% if row.status == "update_pending" %}{% endif %}

{% trans "Action" %}

{% if not row.record %} {% if row.status == "available" %}{% trans "Review and install" %}{% endif %} {% else %} {% if row.status == "active" %}
{% csrf_token %}
{% elif row.status == "inactive" or row.status == "auto_disabled" %}
{% csrf_token %}
{% endif %} {% if has_settings %}{% trans "Settings" %}{% endif %} {% if row.status != "active" %}
{% csrf_token %} {% if row.record.manifest.models %}{% endif %} {% if managed %}{% endif %}
{% endif %} {% endif %}
{% if row.record %}

{% trans "Version and upgrade" %}

{% trans "Installed version:" %} {{ row.record.version }} {% if new_version %} {% trans "— New version in the registry:" %} {{ new_version }}{% else %} {% trans "— No newer version in the registry (or the registry is unavailable)" %}{% endif %}

{% if new_version %}{% if managed and web_install %}
{% csrf_token %}

{% trans "Before replacement the current version is backed up and the plugin stays disabled until the changes are approved." %}

{% else %}

{% trans "Automatic upgrade is possible only for plugins installed with the installer and when web installation is on." %}

{% endif %}{% endif %} {% if packages %}

{% trans "Package history" %}

{% for p in packages %}{% endfor %}
{% trans "Version" %}{% trans "Source" %}{% trans "Signature" %}{% trans "Time" %}
{{ p.version }}{{ p.get_source_display }}{% if p.signature_state == 'verified' %}{% trans "Valid" %} {{ p.signer_label }}{% else %}{% trans "Unsigned" %}{% endif %}{{ p.created_at|jalali_datetime }}
{% endif %} {% if backups %}

{% trans "Backups and rollback" %}

{% for b in backups %}{% endfor %}
{% trans "Version" %}{% trans "Reason" %}{% trans "Time" %}
{{ b.version }}{{ b.get_reason_display }}{{ b.created_at|jalali_datetime }} {% if b.restored_at %}{% trans "Used" %}{% elif web_install %}
{% csrf_token %} {% if b.had_migrations %}{% endif %}
{% endif %}
{% endif %}
{% endif %} {% if row.manifest %}

{% trans "Specifications" %}

{% include "plugins/_manifest_summary.html" with manifest=row.manifest %} {% if fingerprint %}

{% trans "Fingerprint on disk:" %} {{ fingerprint }}

{% endif %} {% if row.record %}

{% trans "Approved fingerprint:" %} {{ row.record.fingerprint }}

{% endif %}
{% endif %}

{% trans "Recent events" %}

{% if events %}
{% for e in events %}{% endfor %}
{% trans "Time" %}{% trans "Type" %}{% trans "Message" %}
{{ e.created_at|jalali_datetime }}{{ e.kind }}{{ e.message }}
{% else %}
{% trans "No event has been recorded." %}
{% endif %}
{% endblock %}