This file is loaded multiple times in this capture.
{% endif %}
{% endmacro %}
{% macro indexed_cookies(header_text, button_text, cookies) %}
{% if cookies %}
{% for key, path in lookup_dict.items() %}
{% if urlnode[key] %}
{% if key == "request_cookie" %}
{% elif key == "response_cookie"%}
{% elif key in ["js", "exe", "css", "font", "html", "json", "image", "video", "unknown_mimetype", "text", "unset_mimetype", "octet-stream", "livestream"] and not urlnode.empty_response %}
{% elif key == "redirect" %}
{% for child in urlnode.children if child.name == urlnode.redirect_url %}
{% else %}
{% endfor %}
{% if urlnode.redirect_url %}
Redirect to: {{ shorten_string(urlnode.redirect_url, 50) }}
{%endif%}
{% else %}
{%endif%}
{%endif%}
{% endfor %}
{% endmacro %}
{% macro shorten_string(string, cut_length) %}
{% if string|length > cut_length %}
{{ string[:cut_length] }} [...]
{% else %}
{{ string }}
{%endif%}
{% endmacro %}