Use <dl> for tracked refs
This commit is contained in:
parent
3b4d8dab72
commit
db814b6d40
2 changed files with 8 additions and 26 deletions
|
|
@ -54,14 +54,6 @@ a:hover {
|
|||
text-decoration: underline;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0 1ch;
|
||||
}
|
||||
|
||||
tbody tr:nth-child(odd) {
|
||||
background-color: #ddd;
|
||||
dd {
|
||||
margin-left: 4ch;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,20 +2,10 @@
|
|||
|
||||
{% block body %}
|
||||
<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>
|
||||
<dl>
|
||||
{% for ref in refs %}
|
||||
<dt>{{ ref.name }}</dt>
|
||||
<dd><a href="{{ base }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue