{# settings/_ansible_sources.html — HTMX partial for Ansible source management #}
{% if sources %}
{% for src in sources %} {% set idx = loop.index0 %}
{# ── View row ──────────────────────────────────────────────────────── #}
{{ src.type }}
{{ src.name }}
{% if src.type == 'git' %} {{ src.url or '(no URL)' }} branch: {{ src.branch or 'main' }} {% if src.pull_interval_seconds %}· pull every {{ src.pull_interval_seconds }}s{% endif %} {% else %} {{ src.path or '(no path)' }} {% endif %}
Browse {% if src.type == 'git' %} {% endif %}
{# ── Inline edit form ──────────────────────────────────────────────── #}
{% endfor %}
{% else %}
No sources configured. Add one below.
{% endif %} {# ── Add source ────────────────────────────────────────────────────────── #}
Add Source New ▾