1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends "_base.html" %}

{% block title %}repositories{% endblock %}

{% block nav %}
<nav class="page-nav">
  <div class="nav-bar">
    <a class="nav-wordmark" href="/" aria-label="quire home">
      <svg class="q-mark" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true">
        <rect x="2" y="2" width="12" height="12" rx="1.2" fill="none" stroke="currentColor" stroke-width="1.2"/>
        <line x1="4.5" y1="6"  x2="11.5" y2="6"  stroke="currentColor" stroke-width="0.8"/>
        <line x1="4.5" y1="8"  x2="11.5" y2="8"  stroke="currentColor" stroke-width="0.8"/>
        <line x1="4.5" y1="10" x2="9"    y2="10" stroke="currentColor" stroke-width="0.8"/>
        <circle cx="11" cy="11" r="3" fill="none" stroke="currentColor" stroke-width="0.8" stroke-dasharray="1.2 1.2" opacity="0.35"/>
      </svg>
    </a>
  </div>
</nav>
{% endblock %}

{% block fullpage %}

<div class="repo-list-page">
  <h1 class="repo-list-heading">Repositories</h1>

  {% if !repos.is_empty() %}
  <div class="repo-list">
    {% for r in repos %}
    <a class="repo-list-item" href="/{{ r.name }}">
      <span class="repo-list-name">{{ r.name }}</span>
      {% if let Some(desc) = r.description %}
      <span class="repo-list-desc">{{ desc }}</span>
      {% endif %}
    </a>
    {% endfor %}
  </div>
  {% else %}
  <p class="repo-list-empty">no repositories yet</p>
  {% endif %}
</div>

{% endblock %}