{% if lines|length == 0 -%}
No results found.
{% else -%} {% if line_numbers|length != 0 -%}
{% for num in line_numbers -%}
{{num}}
{% endfor -%}
{% set PREFIXES = { "[DEBUG]": "muted", "[FAIL] ": "text-danger", "[INFO] ": "text-info", "[ OK ] ": "text-success", "[WARN] ": "text-warning", } -%} {% for line in lines -%} {% for part in line -%} {% if loop.index == 1 and part|length > 7 and part[0:7] in PREFIXES -%}{{part[0:7]}}{{part[7:]}}{% else -%} {% if loop.index % 2 == 1 -%}{{part}}{% else -%}{{part}}{% endif -%} {% endif -%} {% endfor -%} {{ "" }} {% endfor -%}