{% extends "base.html" %}

{% block content %}
<section>
  <h2>상태</h2>
  <!-- 로드 시 1회 + 10초마다 Pulp 연결 상태 폴링 -->
  <div hx-get="/healthz" hx-trigger="load, every 10s" hx-swap="innerHTML" style="margin-top:12px;">
    <span class="status-line status-loading">연결 확인 중…</span>
  </div>
</section>

<section>
  <div class="section-head">
    <h2>저장소</h2>
    <button hx-get="/repos" hx-target="#repo-list" hx-swap="outerHTML" class="secondary">
      새로고침
    </button>
  </div>
  {% include "partials/repo_list.html" %}
</section>
{% endblock %}
