{% extends "base.html" %} {% block content %} {% set is_running = (status.radio357.status == 'W trakcie') or (status.rns.status == 'W trakcie') or (status.jazz.status == 'W trakcie') %} {% if is_running %} {% endif %}
{% if msg %}
{% endif %}
Panel operacyjny

Status systemu

{% for st, name in [('radio357', 'Radio 357'), ('rns', 'Radio Nowy Świat'), ('jazz', 'Radio Jazz')] %}
{{ name }}
Status {% if status[st].status == 'OK' %}OK {% elif status[st].status == 'Błąd' %}Błąd {% elif status[st].status == 'W trakcie' %} W trakcie {% if status[st].progress %}
Zapytania: {{ status[st].progress }}{% endif %} {% else %}{{ status[st].status }}{% endif %}
Ostatni sync{% if status[st].last_run %}{{ status[st].last_run.strftime('%d.%m.%Y %H:%M') }}{% else %}Nigdy{% endif %}
{% if st in ['radio357', 'rns'] %}
Programy{{ stats['r357_progs' if st == 'radio357' else 'rns_progs'] }}
Audio / odcinki{{ stats['r357_audio_eps' if st == 'radio357' else 'rns_audio_eps'] }} / {{ stats['r357_eps' if st == 'radio357' else 'rns_eps'] }}
{% endif %}
{% endfor %}

Błędy wymagające uwagi

{{ pending_errors|length }}
{% if pending_errors %}
{% for error in pending_errors %}
{% if error.severity == 'warning' %}Ostrzeżenie{% else %}Błąd{% endif %}: {{ error.station }} {{ error.last_seen.strftime('%Y-%m-%d %H:%M') }}
{{ error.message }}
Powtórzenia: {{ error.occurrences }}
{% endfor %}
{% else %}
Brak błędów wymagających odczytania.
{% endif %} {% if acknowledged_errors %}
Ostatnio odczytane błędy ({{ acknowledged_errors|length }})
{% for error in acknowledged_errors %}
{{ error.station }} {{ error.last_seen.strftime('%Y-%m-%d %H:%M') }}
{{ error.message }}
Powtórzenia: {{ error.occurrences }}
{% endfor %}
{% endif %}

Ostatnie logi (z pamięci podręcznej)

{% for line in status.logs %}
{{ line }}
{% endfor %}
Konfiguracja Systemu
Radio 357
Radio Nowy Świat
Radio Jazz
Powiadomienia ntfy.sh
{% endblock %}