{% extends "suite-base.html" %} {% block title_name %}file view{% endblock %} {% block content %}
{% for i in range(1, lines|length + 1) -%}
{{i}}
{% endfor -%}
{%- set PREFIXES = {
"[DEBUG]": "muted",
"[FAIL] ": "text-danger",
"[INFO] ": "text-info",
"[ OK ] ": "text-success",
"[WARN] ": "text-warning",
} -%}
{% for line in lines -%}
{% if line|length > 7 and line[0:7] in PREFIXES -%}
{{line[0:7]}}{{line[7:]}}
{% else -%}
{% if mode == "tags" -%}
{{line}}
{% else -%}
{{line|urlise}}
{% endif -%}
{% endif -%}
{% endfor -%}