The base path is an absolute path, so it should always start with /. Whenever it is used, it must also always be followed by at least one /, so baking that into the value makes sense. Finally, we can now deduplicate the / in case the base path is the root.
34 lines
888 B
HTML
34 lines
888 B
HTML
{% extends "base.html" %}
|
|
{% import "util.html" as util %}
|
|
|
|
{% block title %}overview{% endblock %}
|
|
|
|
{% block body %}
|
|
<h2>Refs</h2>
|
|
<details open>
|
|
<summary>Tracked ({{ tracked_refs.len() }})</summary>
|
|
<dl>
|
|
{% for ref in tracked_refs %}
|
|
<dt>{{ ref.name }}</dt>
|
|
<dd>
|
|
<a href="{{ base.root }}commit/{{ ref.hash }}">
|
|
{% call util::commit_short(ref.short, ref.reachable) %}
|
|
</a>
|
|
</dd>
|
|
{% endfor %}
|
|
</dl>
|
|
</details>
|
|
<details>
|
|
<summary>Untracked ({{ untracked_refs.len() }})</summary>
|
|
<dl>
|
|
{% for ref in untracked_refs %}
|
|
<dt>{{ ref.name }}</dt>
|
|
<dd>
|
|
<a href="{{ base.root }}commit/{{ ref.hash }}">
|
|
{% call util::commit_short(ref.short, ref.reachable) %}
|
|
</a>
|
|
</dd>
|
|
{% endfor %}
|
|
</dl>
|
|
</details>
|
|
{% endblock %}
|