{% 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 i18n %} {% load tree %} {% if reportdata.totals.unsafes or reportdata.totals.safes or reportdata.totals.unknowns %}

{% trans 'Verdicts' %}

{% if reportdata.totals.unsafes %} {% endif %} {% if reportdata.totals.safes %} {% endif %} {% if reportdata.totals.unknowns %} {% endif %} {% if reportdata.data.unsafes|length %} {% endif %} {% if reportdata.data.safes|length %} {% endif %} {% if reportdata.data.unknowns|length %} {% endif %}
{% trans 'Unsafes' %}: {{ reportdata.totals.unsafes }} {% trans 'Safes' %}: {{ reportdata.totals.safes }} {% trans 'Unknowns' %}: {{ reportdata.totals.unknowns }}
{% for v in reportdata.data.unsafes %}
{{ v.title }}: {{ v.value }} {% if v.manual or v.automatic %}
{% if v.manual.value %}
{{ v.manual.title }}: {% if v.manual.value %}{{ v.manual.value }}{% else %}0{% endif %}
{% endif %} {% if v.automatic.value %}
{{ v.automatic.title }}: {% if v.automatic.value %}{{ v.automatic.value }}{% else %}0{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% for v in reportdata.data.safes %}
{{ v.title }}: {{ v.value }} {% if v.manual or v.automatic %}
{% if v.manual.value %}
{{ v.manual.title }}: {% if v.manual.value %}{{ v.manual.value }}{% else %}0{% endif %}
{% endif %} {% if v.automatic.value %}
{{ v.automatic.title }}: {% if v.automatic.value %}{{ v.automatic.value }}{% else %}0{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% for comp in reportdata.data.unknowns %}
{{ comp.component }}{% if comp.total %}: {{ comp.total.num }}{% endif %}
{% for probl in comp.problems %}
{{ probl.problem }}: {{ probl.num }}
{% endfor %}
{% endfor %}
{% endif %} {% if reportdata.data.tags_safe|length or reportdata.data.tags_unsafe|length %}

{% trans 'Tags' %}

{% if reportdata.data.tags_unsafe|length %} {% endif %} {% if reportdata.data.tags_safe|length %} {% endif %} {% if reportdata.data.tags_unsafe|length %} {% endif %} {% if reportdata.data.tags_safe|length %} {% endif %}
{% trans "Unsafe reports' tags" %}{% trans "Safe reports' tags" %}
{% tree reportdata.data.tags_unsafe 'parent' 'name' 'tag small orange' %} {{ item.name }}: {{ item.value }} {% endtree %} {% tree reportdata.data.tags_safe 'parent' 'name' 'tag small green' %} {{ item.name }}: {{ item.value }} {% endtree %}
{% endif %} {% if reportdata.data.attr_stat %}

{% trans 'Statistics by attribute' %} "{{ reportdata.view.attr_stat.0 }}"

{% for attr_data in reportdata.data.attr_stat %} {% endfor %}
{% trans 'Attribute value' %} {% trans 'Unsafes' %} {% trans 'Safes' %} {% trans 'Unknowns' %}
{{ attr_data.attr_value }} {% if attr_data.unsafes %} {{ attr_data.unsafes }} {% else %} - {% endif %} {% if attr_data.safes %} {{ attr_data.safes }} {% else %} - {% endif %} {% if attr_data.unknowns %} {{ attr_data.unknowns }} {% else %} - {% endif %}
{% endif %} {% if reportdata.data.resources|length %}

{% trans 'Consumed resources' %}

{% for resource_data in reportdata.data.resources %} {% if resource_data.component == 'total' %} {% endif %} {% endfor %} {% for resource_data in reportdata.data.resources %} {% if resource_data.component != 'total' %} {% endif %} {% endfor %}
{% trans 'Component' %} {% trans 'Instances' %} {% trans 'Wall time' %} {% trans 'CPU time' %} {% trans 'Maximum memory size' %}
{% trans 'Total' %} {{ resource_data.instances }} {{ resource_data.wall_time }} {{ resource_data.cpu_time }} {{ resource_data.memory }}
{% if resource_data.component == reportdata.report.component %} {{ resource_data.component }} {% else %} {{ resource_data.component }} {% endif %} {{ resource_data.instances }} {{ resource_data.wall_time }} {{ resource_data.cpu_time }} {{ resource_data.memory }}
{% endif %}