{% extends "base.html" %} {% block title %}— {{ filename }}{% endblock %} {% block content %} {# ── breadcrumb ── #}
Results › {{ experiment }} › {{ run_id }} › {{ filename }}

{{ filename }}

{{ preview_type | upper }} {% if file_size %}{{ (file_size / 1024) | round(1) }} KB{% endif %}

{{ path }}

{# ── download button ── #}
Download {{ filename }}
{# ── CSV preview ── #} {% if preview_type == 'csv' %}

Preview

{% if truncated %} Showing first {{ csv_rows | length }} rows {% else %} {{ csv_rows | length }} rows {% endif %}
{% if csv_headers %} {% for col in csv_headers %} {% endfor %} {% endif %} {% for row in csv_rows %} {% for cell in row %} {% endfor %} {% endfor %} {% if not csv_rows %} {% endif %}
{{ col }}
{{ cell }}
No data rows found.
{% if truncated %}
File contains more rows — download to view complete data.
{% endif %}
{# ── text preview ── #} {% elif preview_type == 'text' %}

Preview

{% if truncated %} Showing first 50 lines {% endif %}
{{ text_content }}
{% if truncated %}
File contains more lines — download to view complete content.
{% endif %}
{# ── error ── #} {% elif preview_type == 'error' %}

Could not read file

{% if preview_error %}

{{ preview_error }}

{% endif %}
{# ── no preview ── #} {% else %}

No preview available for this file type.

Use the download button above to open the file.

{% endif %} {% endblock %}