{% macro problems_table(problems) %} {% if problems %} {%- for problem in problems %} {%- endfor %}
ID Component Crash function State Bugs Probably fixed Count
{{ problem.id }} {% set components = problem.components.split(", ") %} {{ problem.components }} {% if components|length != problem.comp_count %} ({{ problem.comp_count - components|length }} more) {% endif %} {% if not problem.untainted_count %} Tainted {% endif %} {%- if problem.crashfn %} {{ problem.crashfn|truncate(50, True) }} {%- endif %} {% set bug_status = problem.bz_status if problem.bz_status not in (none, "NEW") else problem.mantis_status %} {% set status = "NEW" if bug_status is none else bug_status %} {{ status }} {{ problem.mantisbugs_count + problem.bzbugs_count}} {%- if problem.pkg_name %} {% set os = problem.opsys.split(", ") %} {% set os_rel = problem.opsys_release.split(", ") %} {% set comp = problem.pkg_name.split(", ") %} {% set comp_ver = problem.pkg_version.split(", ") %} {% set comp_rel = problem.pkg_release.split(", ") %} {% for o in os %} {{ o }} {{ os_rel[loop.index0] }}: {{ comp[loop.index0] }}-{{ comp_ver[loop.index0]}}-{{ comp_rel[loop.index0] }} {%- endfor %} {%- endif %} {{ problem.count|readable_int }}
{% else %}

No data to display

{% endif %} {% endmacro %}