{% extends "admin/base_site.html" %} {% load i18n %} {% block breadcrumbs %} {% include "admin/includes/task_panel_breadcrumb.html" with page_title="NGINX Report" %} {% endblock %} {% block content %}

{% trans "NGINX Report" %}

{% trans "Review the expected Arthexis-managed NGINX configuration and compare it with the file on disk." %}

{% trans "Managed file" %}
{{ nginx_report.expected_path }}
{% trans "Difference check" %}
{% if nginx_report.differs %} {% trans "Differences detected" %} {% else %} {% trans "Matches expected configuration" %} {% endif %}
{% trans "Mode" %}
{{ nginx_report.mode }}
{% trans "Port" %}
{{ nginx_report.port }}

{% trans "Expected contents" %}

{% if nginx_report.expected_error %}

{{ nginx_report.expected_error }}

{% else %}

{% blocktrans with mode=nginx_report.mode port=nginx_report.port %}Generated using mode "{{ mode }}" on port {{ port }}.{% endblocktrans %}

{{ nginx_report.expected_content }}
{% endif %}

{% trans "Actual contents" %}

{% blocktrans with path=nginx_report.actual_path %}Read from {{ path }}.{% endblocktrans %}

{% if nginx_report.actual_error %}

{{ nginx_report.actual_error }}

{% elif nginx_report.actual_content %}
{{ nginx_report.actual_content }}
{% else %}

{% trans "The configuration file is empty." %}

{% endif %}
{% endblock %}