{% extends 'layout.html.twig' %} {% block title %}Relay Administration{% endblock %} {% block body %}
{# Status Overview #}
{# Container Status #}

Container Status

strfry Relay {% if container_status.strfry.status == 'running' %} Running {% else %} {{ container_status.strfry.status|default('Not Running') }} {% endif %}
Port 7777 {% if connectivity.port_accessible %} Accessible {% else %} Not Accessible {% endif %}
{# Database Statistics #}

Database Statistics

{% if stats.error is defined %}
{{ stats.error }}
{% elseif stats.relay_accessible %}
Relay Status Accessible & Running
Total Events {{ stats.total_events }}
Database Size {{ stats.database_size }}
{% if stats.total_events == 0 %}
No events found. Run prime to populate the relay.
{% endif %} {% else %}
Relay not accessible
{% endif %}
{# Configuration #}

Configuration

Relay URL {{ config.relay_url }}
External Access {{ config.relay_external }}
Sync Window {{ config.days_articles }} days (articles)
Thread Window {{ config.days_threads }} days (threads)
{# Recent Events #} {% if recent_events|length > 0 %}

Recent Events (Last 5)

{% for event in recent_events %}
Kind {{ event.kind }} ID: {{ event.id[:16] }}... {{ event.created_at|date('Y-m-d H:i') }}
{% if event.content %}
{{ event.content[:200] }}{% if event.content|length > 200 %}...{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}