Use <dl> for tracked refs

This commit is contained in:
Joscha 2023-08-05 21:08:01 +02:00
parent 3b4d8dab72
commit db814b6d40
2 changed files with 8 additions and 26 deletions

View file

@ -54,14 +54,6 @@ a:hover {
text-decoration: underline; text-decoration: underline;
} }
table { dd {
border-collapse: collapse; margin-left: 4ch;
}
td {
padding: 0 1ch;
}
tbody tr:nth-child(odd) {
background-color: #ddd;
} }

View file

@ -2,20 +2,10 @@
{% block body %} {% block body %}
<h2>Tracked refs</h2> <h2>Tracked refs</h2>
<table> <dl>
<thead> {% for ref in refs %}
<tr> <dt>{{ ref.name }}</dt>
<th>ref</th> <dd><a href="{{ base }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
<th>points to</th> {% endfor %}
</tr> </dl>
</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 %} {% endblock %}