List tracked refs on index page

This commit is contained in:
Joscha 2023-08-05 21:03:18 +02:00
parent 2b4a5d4021
commit 3b4d8dab72
5 changed files with 89 additions and 8 deletions

View file

@ -1,5 +1,21 @@
{% extends "base.html" %}
{% block body %}
<h1>{{ repo_name }}</h1>
<h2>Tracked refs</h2>
<table>
<thead>
<tr>
<th>ref</th>
<th>points to</th>
</tr>
</thead>
<tbody>
{% for ref in refs %}
<tr>
<td>{{ ref.name }}</td>
<td><a href="{{ base }}/commit/{{ ref.hash }}">{{ ref.short }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}