Abbaye

at 8d154b4

{% extends "base.html" %}
{% block head %}
        <title>{{ project_name }} — Refs</title>
{% endblock %}
{% block header %}
            <a href="{{ root_path }}" class="site-title">{{ project_name }}</a>
            <nav>
                <a href="index.html">Log</a>
                <a href="refs.html" class="active">Refs</a>
            </nav>
{% endblock %}
{% block body %}
        <main>
            {% if tags %}
            <h2 class="section-heading">Tags</h2>
            <table>
                <thead><tr><th>Tag</th><th>Hash</th></tr></thead>
                <tbody>
                    {% for ref in tags %}
                    <tr id="tag-{{ ref.short_name }}">
                        <td><a class="ref-kind-tag" href="commit/{{ ref.hash }}.html">{{ ref.short_name | escape }}</a></td>
                        <td><a class="hash" href="commit/{{ ref.hash }}.html">{{ ref.hash_short }}</a></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
            {% endif %}

            {% if branches %}
            <h2 class="section-heading">Branches</h2>
            <table>
                <thead><tr><th>Branch</th><th>Hash</th></tr></thead>
                <tbody>
                    {% for ref in branches %}
                    <tr>
                        <td><a class="ref-kind-branch" href="commit/{{ ref.hash }}.html">{{ ref.short_name }}</a></td>
                        <td><a class="hash" href="commit/{{ ref.hash }}.html">{{ ref.hash_short }}</a></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
            {% endif %}

            {% if not tags and not branches %}
            <p style="color: var(--text-muted);">No refs found.</p>
            {% endif %}
        </main>
{% endblock %}