{#- ---------------------------------------------------------------------------- Macro for rendering of dropdown submenus. Entries in the menus are automatically hidden based on the permissions of the current user. ----------------------------------------------------------------------------- #} {%- macro render_dropdown_submenus(submenus, align_right) -%}
{% endmacro %} {#- ---------------------------------------------------------------------------- Macro for rendering the main menu of the application. Entries in the menu are automatically hidden based on the permissions of the current user. ----------------------------------------------------------------------------- #} {%- macro render_menu_main() -%} {%- endmacro %} {#- ---------------------------------------------------------------------------- Macro for rendering the authentication and anonymous submenus of the application. These menus get special handling. ----------------------------------------------------------------------------- #} {%- macro render_submenu_auth() -%} {%- if current_user.is_authenticated %}{{ time_mark[3] }}:{{ time_mark[2] }}:{{ time_mark[1] }} | {{ get_icon("clock") }} {%- if loop.index0 != 0 %} {%- set time_mark_prev = timemark_list[loop.index0 - 1] %} {{ time_mark[0] - timemark_list[loop.index0 - 1][0] }} s {{ babel_format_percent((time_mark[0] - time_mark_prev[0]) /total_duration) }} {% endif %} | {% if time_mark[2] == 'end' %} {%- set dur_key = '{}:begin:{}'.format(time_mark[3], time_mark[1]) %} {%- if dur_key in dur_ns and dur_ns[dur_key] != timemark_list[loop.index0 - 1][0] %} {{ time_mark[0] - dur_ns[dur_key] }} s {{ babel_format_percent((time_mark[0] - dur_ns[dur_key]) /total_duration) }} {%- endif %} {%- elif time_mark[2] == 'begin' %} {%- set dur_key = '{}:{}:{}'.format(time_mark[3], time_mark[2], time_mark[1]) %} {%- set _dummy = dur_ns.update({dur_key: time_mark[0]}) %} {%- endif %} | {{ time_mark[4] }} |
{{ _("Total duration") }}:
{%- if timemark_list %}{{ total_duration }}{%- endif %}
{%- if show_to_render_time %}
{{ _("Duration to rendering time") }}:
{%- if timemark_list %}{{ get_datetime_utc() - timemark_list[0][0] }}{%- endif %}
{%- endif %}
{{ item | pprint }} {{ item | pprint_item }}
{{ var | pprint }}
{{ var.__repr__() }}
{{ var.__str__() }}
{{ _("Unprotected access link") }}: {{ item.label }}
{%- if current_user.is_authenticated and item.parent %}{{ _("Parent summary report") }}: {{ item.parent.label }}
{%- endif %}{{ _("Group") }}: {%- for group in item.groups %} {%- if current_user.is_authenticated %} {%- if loop.index != 1 %},{%- endif %} {{ group.name -}} {%- else -%} {%- if loop.index != 1 %},{%- endif %} {{ group.name }} {%- endif -%} {%- else %} --- {%- endfor %}
{{ _("Report window") }}: {{ babel_format_datetime(item.dt_from) }} - {{ babel_format_datetime(item.dt_to) }} ({{ babel_format_timedelta(item.delta) }})
{{ _("Report created") }}: {{ babel_format_datetime(item.createtime) }} ({{ _('%(delta)s ago', delta = babel_format_timedelta(current_datetime_utc - item.createtime)) }})
{{ _("Report mailed") }}: {% if item.flag_mailed %} {{ render_mailed(item, True) }} {% endif %}
{{ _("Event count") }}: {{ item.evcount_rep }} {{ _("reported") }} {%- if item.type == 'summary' %} ({{ item.evcount_all }} {{ _("matched") }}, {{ item.evcount_new }} {{ _("new events") }}, {{ item.evcount_flt_blk }} {{ _("filtered out") }}, {{ item.evcount_det_blk if item.evcount_det_blk else 0 }} {{ _("uncredible") }}, {{ item.evcount_thr_blk }} {{ _("thresholded") }}, {{ item.evcount_rlp }} {{ _("relapsed") }}) {%- elif item.type != 'target' -%} , {{ item.evcount_all }} {{ _("total in parent summary report") }} {%- endif %}
{%- if item.filtering -%}{{ _("Filtering") }}: {%- for subitem in item.filtering | dictsort %} {% if can_access_endpoint('filters.list', item) %} {{ subitem[0] }} {% else %} {{ subitem[0] }} {% endif %} {{ subitem[1] }} {%- if not loop.last -%} , {%- endif %} {%- endfor %}
{%- endif %}
{%- endif %}
{% if mark_list and subitem.__str__() in mark_list %}
{{ subitem }}
{%- else %}
{{ subitem }}
{%- endif %}
{%- if as_code %}
{%- endif %}
{%- endif -%}