{% comment "License" %} % Copyright (c) 2019 ISP RAS (http://www.ispras.ru) % Ivannikov Institute for System Programming of the Russian Academy of Sciences % % Licensed under the Apache License, Version 2.0 (the "License"); % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % http://www.apache.org/licenses/LICENSE-2.0 % % Unless required by applicable law or agreed to in writing, software % distributed under the License is distributed on an "AS IS" BASIS, % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. % See the License for the specific language governing permissions and % limitations under the License. {% endcomment %} {% load tz %} {% load i18n %}

{% trans 'Versions comparison' %}

{{ data.v1.change_date|date:"r" }} {% if data.v1.author %} ({{ data.v1.author.get_full_name }}) {% endif %} {% if data.v1.comment %} : {{ data.v1.comment }} {% endif %}

{{ data.v2.change_date|date:"r" }} {% if data.v2.author %} ({{ data.v2.author.get_full_name }}) {% endif %} {% if data.v2.comment %} : {{ data.v2.comment }} {% endif %}

{% if data.verdict %}
{% trans 'Verdict was changed' %}
{{ data.verdict.0.text }}
{{ data.verdict.1.text }}
{% endif %} {% if data.status %}
{% trans 'Status was changed' %}
{% if data.status.0.id %} {{ data.status.0.text }} {% else %} {% endif %}
{% if data.status.1.id %} {{ data.status.1.text }} {% else %} {% endif %}
{% endif %} {% if data.tags %}
{% trans 'Tags were changed' %}
{% if data.tags.0 %}{{ data.tags.0 }}{% else %}{% endif %}
{% if data.tags.1 %}{{ data.tags.1 }}{% else %}{% endif %}
{% endif %} {% if data.error_trace %}
{% trans 'Error trace was changed' %}
{{ data.error_trace }}
{% endif %} {% if data.unsafe_regexp %}
{% trans 'Regular expression' %}
{{ data.unsafe_regexp.0 }}
{{ data.unsafe_regexp.1 }}
{% endif %} {% if data.attrs %}
{% trans 'Attributes to compare were changed' %}
{% if data.attrs.0|length %} {% else %} {% endif %}
{% if data.attrs.1|length %} {% else %} {% endif %}
{% endif %} {% if data.unknown_func %}
{% trans 'Pattern was changed' %}
{% if data.unknown_func.0.is_regexp %}(regexp){% endif %}
{{ data.unknown_func.0.func }}

{% if data.unknown_func.1.is_regexp %}(regexp){% endif %}
{{ data.unknown_func.1.func }}
{% endif %} {% if data.problem %}
{% trans 'Problem or/and its link were changed' %}
{% if data.problem.0.link %}{{ data.problem.0.pattern }}{% else %}{{ data.problem.0.pattern }}{% endif %}
{% if data.problem.1.link %}{{ data.problem.1.pattern }}{% else %}{{ data.problem.1.pattern }}{% endif %}
{% endif %} {% if data.v1.description != data.v2.description %}
{% trans 'Description was changed' %}

{% if data.v1.description %}{{ data.v1.description }}{% else %}{% endif %}

{% if data.v2.description %}{{ data.v2.description }}{% else %}{% endif %}

{% endif %}