Add typed commit links

This commit is contained in:
Joscha 2023-08-10 22:04:30 +02:00
parent 0253d2d90b
commit c3c597897c
10 changed files with 82 additions and 69 deletions

View file

@ -22,22 +22,15 @@
{% for commit in parents %}
<dt>Parent:</dt>
<dd>
<a href="{{ commit.hash }}">
{% call util::commit_short(commit.short, commit.reachable)%}
</a>
</dd>
<dd>{{ commit|safe }}</dd>
{% endfor %}
{% for commit in children %}
<dt>Child:</dt>
<dd>
<a href="{{ commit.hash }}">
{% call util::commit_short(commit.short, commit.reachable)%}
</a>
</dd>
<dd>{{ commit|safe }}</dd>
{% endfor %}
</dl>
<pre class="{% call util::r_class(reachable) %}" title="{% call util::r_title(reachable) %}">{{ message }}</pre>
<pre class="{% call util::commit_class(reachable) %}"
title="{% call util::commit_title(reachable) %}">{{ message }}</pre>
</div>
{% endblock %}