{# 표 + 페이저 조각. 검색/정렬/페이지 이동의 swap 대상(#repo-table-wrap). 정렬 헤더와 페이저는 현재 검색어(q)를 #repo-search 에서 hx-include 로 가져온다. hidden state(sort/dir, data-state)는 검색창이 정렬 상태를 함께 보내도록 노출. #}
{% macro sorth(col, label, extra="") %} {{ label }}{% if sort == col %} {{ '↑' if dir == 'asc' else '↓' }}{% endif %} {% endmacro %} {% if total %}
{{ sorth("name", "저장소") }} {{ sorth("verified", "검증") }} {{ sorth("version", "최신 버전", "num") }} {{ sorth("packages", "패키지 수", "num") }} {{ sorth("last_sync", "마지막 동기화") }} {% for repo in repos %} {% endfor %}
{{ repo.name }} {{ repo.gpg.label }} {% if repo.latest_version is not none %}v{{ repo.latest_version }}{% else %}—{% endif %} {% if repo.package_count is not none %}{{ repo.package_count }}{% else %}—{% endif %} {{ repo.last_sync or "—" }}
{% if pages > 1 %}
{{ page }} / {{ pages }}
{% endif %}
{% elif q %}

'{{ q }}' 검색 결과가 없습니다.

{% else %}

등록된 저장소가 없습니다.

{% endif %}