{% extends "base.html" %}
{% block title %}
CyberRange
{% endblock %}
{% block content %}
Result Details
- {{ user }}
- {{ exercise }}
-
{% if data %}
{% for key, value in data.items() %}
-
{% if value is mapping %}
{% for subkey, subvalue in value.items() recursive %}
-
{% if subvalue is mapping %}
{{- loop(subvalue.items()) }}
{% else %}
{% if subvalue != "" and (subvalue | string).startswith('http') %}
{{subvalue | truncate(150, True, ' ...') }}
{% elif subvalue != "" and (subvalue | string).startswith('/upload/') %}
download attachment
{% elif subvalue != "" %}
{{subvalue}}
{% else %}
empty
{% endif %}
{% endif %}
{% endfor %}
{% else %}
{{ value }}
{% endif %}
{% endfor %}
{% else %}
no data
{% endif %}
{% endblock %}