{% extends "base.html" %} {% block title %}Instances distantes{% endblock %} {% block content %}

Instances distantes

+ Ajouter une instance
{% if not instances %}

Aucune instance distante configurée.

Ajoutez une instance pour voir son état et déclencher des sauvegardes à distance.

Ajouter une première instance →
{% else %}
{% for inst in instances %} {% set status_color = { 'online': 'bg-green-100 text-green-700', 'error': 'bg-red-100 text-red-700', 'offline': 'bg-gray-100 text-gray-500', }.get(inst.status, 'bg-gray-100 text-gray-400') %}
{{ inst.name }} {{ inst.status or 'unknown' }} {% if inst.last_seen %} vu {{ inst.last_seen.strftime('%d/%m %H:%M') }} {% endif %}

{{ inst.url_display }}

{% if inst.remote_runs %}

Jobs ({{ inst.remote_runs | length }})

{% for rr in inst.remote_runs %} {% set run_color = { 'success': 'text-green-600', 'error': 'text-red-600', 'running': 'text-blue-600', }.get(rr.last_status, 'text-gray-400') %}

{{ rr.job_name }}

{{ rr.job_type }}

{% if rr.last_run_at %}

{{ rr.last_status }} — {{ rr.last_run_at.strftime('%d/%m %H:%M') }}

{% else %}

jamais exécuté

{% endif %} {% if rr.last_size_bytes %}

{{ rr.last_size_human }}

{% endif %}
{% endfor %}
{% endif %}
Éditer
{% endfor %}
{% endif %} {% endblock %}