<div class="list">
  {% if rows %}
    {% for r in rows %}
      <article class="item" hx-get="/faults/{{ r.id }}" hx-target="#modal" hx-swap="innerHTML show:top">
        <header>
          <div class="code">{{ r.code }}</div>
          <div class="title">{{ r.title }}</div>
        </header>
        <footer>
          <small>{{ r.category_name or '분류없음' }}</small>
        </footer>
      </article>
    {% endfor %}
  {% else %}
    <p>검색 결과가 없습니다.</p>
  {% endif %}
</div>


