{% extends "base.html" %}
{% block title %}{% if counts.error %}({{ counts.error }}) {% endif %}gitops-watcher{% endblock %}
{% block content %}
{% else %}
{% if me %}
{# the watcher itself: updates itself from its own repo, so no deploy/stop/remove here #}
{% set cls = {'ok': 'ok', 'updating': 'busy', 'held': 'warn', 'error': 'error'}.get(me.status, 'new') %}
{% set label = {'ok': 'up to date', 'updating': 'updating', 'held': 'held'}.get(me.status, me.status) %}
repo status commit last check last deploy
actions
{% if me.note and me.status in ('held', 'error') %}
{{ me.name }}this watcher
{{ label }}
{% if me.running %}{{ me.running[:7] }}{% endif %}
{% if me.latest and me.latest != me.running %} → {{ me.latest[:7] }}{% endif %}
{{ me.last_check|ago }}
{{ me.started|ago }}
auto · {{ me.remote }}/{{ me.branch }}
{% endif %}
{% endif %}
{% for r in rows %}
{% set warn = r.missing_env and r.status != 'error' and not r.busy %}
└─ {{ me.note }}
{% if r.status == 'error' and r.error and not r.busy %}
{% if r.busy %}
queued · {{ r.busy }}
{% elif r.status == 'new' %}
waiting
{% else %}
{{ r.status }}
{% endif %}
{% if warn %}⚠ .env{% endif %}
{% if r.commit %}{{ r.commit }}{% else %}-{% endif %}
{{ r.last_check|ago }}
{{ r.last_deploy|ago }}
{% if r.busy != 'add' %}
{% endif %}
{% if warn %}
└─ {{ r.error }}
{% endif %}
{% endfor %}
└─ .env is missing {{ r.missing_env|length }} key{{ 's' if r.missing_env|length > 1 }} from .env.example:
{% for k in r.missing_env %} {{ k }}{{ ", " if not loop.last }}{% endfor %}