{% extends "admin/base_site.html" %} {% load i18n %} {% block title %}Log Viewer | {{ site_title|default:_('SWIRL') }}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block content %} {# ── Tabs ─────────────────────────────────────────────────── #}
{% for f in log_files %} {{ f.label }} {% endfor %}
{# ── Meta row ─────────────────────────────────────────────── #}
File: {{ selected_rel }} Size on disk: {% if size_bytes is None %} missing {% else %} {{ size_bytes|filesizeformat }} {% endif %} Tail window: {{ tail_bytes|filesizeformat }} max Lines shown: {{ line_count }}
{# ── Log pane ─────────────────────────────────────────────── #} {% if lines %}
{% spaceless %}{% for line in lines %}{{ line }}
{% endfor %}{% endspaceless %}
{% else %}
No log content available at {{ selected_rel }}. This is normal on a fresh install before SWIRL has handled any requests.
{% endif %} {% endblock %}