{# Фильтры формирования отчета: HTML (flex) и PDF (table) #} {% from "macros.html" import filters_row, filters_row_status_match, user_icon %} {% from "constants.html" import filters_title_map, status_map, comment_map, filter_bool_mappings, severity_order, issue_statuses_map, status_match_map %} {% macro filter_check_icon() %} {% endmacro %} {% macro filter_check_html(label, label_width) %}
| {{ filters_title_map[key] }} | {{ join_severity(value) }} |
|---|---|
| {{ filters_title_map[key] }} | {{ value | join(', ') }} |
| {{ filters_title_map[key] }} | {{ join_mapped(value, status_map) }} |
| {{ filters_title_map[key] }} | {{ join_mapped(value, issue_statuses_map) }} |
| {{ filters_title_map[key] }} | {% for item in value %} {% set norm_value = item | string | lower %} {{ status_match_map.get(norm_value, item) }}{% if norm_value in status_match_map %}{{ user_icon() }}{% endif %}{% if not loop.last %}, {% endif %} {% endfor %} |
| {{ filters_title_map[key] }} | {{ value[:10] }} — {{ filters["end_date"][:10] }} |
| {{ filters_title_map[key] }} | {{ join_cwe(value) }} |
| {{ filters_title_map.get(key) }} | {{ join_mapped(value, comment_map) }} |
| {{ filters_title_map.get(key) }} | {{ filter_bool_mappings[key].get(norm_value, '') }} |
| За последнее сканирование | {{ filter_check_icon() }} |
| Дефекты найденные в последних сканированиях | {{ filter_check_icon() }} |