{% extends "base.html" %}

{% block content %}
<a href="/" role="button" class="ghost btn-sm btn-icon back-btn">
  <svg class="icon" viewBox="0 0 16 16" width="13" height="13" fill="none"
       stroke="currentColor" stroke-width="1.8" stroke-linecap="round"
       stroke-linejoin="round" aria-hidden="true"><path d="M10 2.5 4.5 8l5.5 5.5"/></svg>
  대시보드
</a>

<section>
  <h2>{{ repo_name }} · 버전</h2>
  <div id="flash"></div>

  {% if error %}
    <p class="status-line status-bad">버전 목록을 불러오지 못했습니다: {{ error }}</p>
  {% else %}
    <div class="verify-detail">
      <span class="badge badge-{{ verification.status.level }}">{{ verification.status.label }}</span>
      <small>
        gpgcheck={{ verification.gpgcheck }} ·
        repo-gpgcheck={{ verification.repo_gpgcheck }} ·
        checksum={{ verification.checksum_type }}
      </small>
    </div>

    {% include "partials/version_list.html" %}
  {% endif %}
</section>

<!-- 배포 확인 모달이 여기에 로드된다 -->
<div id="modal"></div>
{% endblock %}
