Abbaye

at 8d154b4

{% extends "base.html" %}
{% block head %}
        <title>{{ project_name }} — {{ current_branch }}</title>
{% endblock %}
{% block header %}
            <a href="{{ root_path }}" class="site-title">{{ project_name }}</a>
            <nav>
                <a href="index.html" class="active">Log</a>
                <a href="refs.html">Refs</a>
            </nav>
{% endblock %}
{% block body %}
        <main>
            {% if clone_url %}
            <div class="clone-box">
                <span class="clone-label">Clone</span>
                <span class="clone-url">git clone {{ clone_url }}</span>
            </div>
            {% endif %}

            {% if branch_nav | length > 1 %}
            <div class="branch-switcher">
                {% for b in branch_nav %}
                <a href="{{ b.filename }}"{% if b.is_current %} class="active"{% endif %}>{{ b.short_name  }}</a>
                {% endfor %}
            </div>
            {% endif %}

            <h2 class="section-heading">{{ current_branch }}</h2>
            <table>
                <thead>
                    <tr>
                        <th>Hash</th>
                        <th>Subject</th>
                        <th>Author</th>
                        <th>Date</th>
                    </tr>
                </thead>
                <tbody>
                    {% for commit in commits %}
                    <tr>
                        <td class="commit-hash-cell">
                            <a class="hash" href="commit/{{ commit.hash }}.html">{{ commit.hash_short }}</a>{% for badge in commit.ref_badges %}<a href="commit/{{ commit.hash }}.html" class="ref-badge ref-badge-{{ badge.kind }}">{{ badge.label }}</a>{% endfor %}{% if commit.ref_badges %}<a href="browse/{{ commit.hash }}/" class="ref-badge browse-link">browse</a>{% endif %}
                        </td>
                        <td>{{ commit.subject }}</td>
                        <td>{{ commit.author_name }}</td>
                        <td><time datetime="{{ commit.date_iso }}">{{ commit.date }}</time></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
            {% if truncated %}
            <p style="margin-top:1rem; font-size:0.85rem; color:var(--text-muted);">
                Showing the {{ commits | length }} most recent commits.
            </p>
            {% endif %}
        </main>
{% endblock %}