{% extends "admin/base_site.html" %} {% load bg_extras %} {% block extrastyle %}{{ block.super }}{% include "backupgram/admin/_assets.html" %}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}
{# ── Server identity header ── #}

{{ server.name }}

{{ server.base_url }}   {% if status %} Connected {% else %} Unreachable {% endif %}

{# ── Error notice ── #} {% if error %} {% endif %} {# ── Warnings ── #} {% for w in warnings %} {% endfor %} {# ── KPI cards ── #} {% if status %}
Schedule
{{ status.schedule }}
{% if status.last_backup %}
Last backup
{% if status.last_backup.status == "OK" %} OK {% else %} {{ status.last_backup.status }} {% endif %}
{% endif %}
Next backup
{% if next_run %}{{ next_run|timeuntil }}{% else %}—{% endif %}
{% endif %} {# ── Status & configuration — compact cards ── #} {% if config_loaded or status %}
Upload mode
{{ info.upload_method }}
Telegram delivery
{% if info.telegram_ok %}Connected{% else %}Not configured{% endif %}
MTProto
{% if info.mtproto_ready %}Ready{% else %}Not set{% endif %}
Cluster mode
{% if info.cluster %}On{% else %}Off{% endif %}
Previous backup
{% if status.last_backup.timestamp %}{{ status.last_backup.timestamp|ago }}{% else %}never{% endif %}
{% endif %} {# ── Primary actions ── #}
{% csrf_token %}
Backups Jobs Restore Config
{# ── Recent backups panel ── #}
Recent backups {{ recent|length }}
{% if recent %} {% for b in recent %} {% endfor %}
Slot Name Size Age
{{ b.slot }} {{ b.name }} {{ b.size|filesizeformat }} {{ b.mtime|ago }} Download
{% else %}

No backups yet.

{% endif %}
{% endblock %}