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
{% extends "base.html" %}
{% block content %}
<header class="index-head"><h1 class="title">Repositories</h1>{% if total > 0 %}<p class="count">{{ count }}</p>{% endif %}</header>
{% if total > 1 || !filter.is_empty() %}<form class="index-filter" method="get" action="/" role="search"><input type="search" name="q" value="{{ filter }}" placeholder="Filter by name or description" aria-label="Filter repositories" autocapitalize="none" spellcheck="false"><button class="button" type="submit">Filter</button>{% if !filter.is_empty() %}<a class="button" href="/">Clear</a>{% endif %}</form>{% endif %}
{% if rows.is_empty() && !filter.is_empty() %}
<section class="panel index-empty"><h2>No repositories match “{{ filter }}”</h2><a class="button" href="/">Show all repositories</a></section>
{% else if rows.is_empty() %}
<section class="panel index-empty">
<div class="index-mark">{{ branch|safe }}</div>
{% if signed_in %}
<h2>No repositories yet</h2>
<p>Create your first repository by pushing a branch over SSH.</p>
<code>git push git@{{ host }}:<owner>/my-project.git main</code>
{% else %}
<h2>No public repositories yet</h2>
<a class="button" href="/login">Sign in to view private repositories</a>
{% endif %}
</section>
{% else %}
<div class="panel index-list">
<div class="index-columns" aria-hidden="true"><span>Repository</span><span>Latest commit</span><span>Updated</span></div>
<ul class="rows">
{% for row in rows %}
<li><a class="repo-row" href="/{{ row.owner }}/{{ row.name }}/tree">
<span class="ridentity"><span class="rname"><span>{{ row.owner }}/</span>{{ row.name }}</span>
{% if signed_in %}<small>{% if row.public %}Public{% else %}Private{% endif %}</small>{% endif %}
{% if let Some(description) = row.description %}<span class="rdesc">{{ description }}</span>{% endif %}</span>
<span class="rlast">{{ row.subject }}</span>
<span class="rwhen">{{ row.when }}</span>
</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endblock %}