Use same commit link style everywhere

This commit is contained in:
Joscha 2023-08-06 23:38:12 +02:00
parent 2b81d497bc
commit 794787a4be
10 changed files with 96 additions and 75 deletions

View file

@ -1,4 +1,5 @@
{% extends "base.html" %}
{% import "util.html" as util %}
{% block title %}overview{% endblock %}
@ -9,7 +10,11 @@
<dl>
{% for ref in tracked_refs %}
<dt>{{ ref.name }}</dt>
<dd><a href="{{ base.root }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
<dd>
<a href="{{ base.root }}/commit/{{ ref.hash }}">
{% call util::commit_short(ref.short, ref.reachable) %}
</a>
</dd>
{% endfor %}
</dl>
</details>
@ -18,7 +23,11 @@
<dl>
{% for ref in untracked_refs %}
<dt>{{ ref.name }}</dt>
<dd><a href="{{ base.root }}/commit/{{ ref.hash }}">{{ ref.short }}</a></dd>
<dd>
<a href="{{ base.root }}/commit/{{ ref.hash }}">
{% call util::commit_short(ref.short, ref.reachable) %}
</a>
</dd>
{% endfor %}
</dl>
</details>