Skip to main content

TEMPLATE_GIT_LOG_HTML

Constant TEMPLATE_GIT_LOG_HTML 

Source
pub const TEMPLATE_GIT_LOG_HTML: &str = "{% extends \"base.html\" %}\n{% block head %}\n        <title>{{ project_name }} \u{2014} {{ current_branch }}</title>\n{% endblock %}\n{% block header %}\n            <a href=\"{{ root_path }}\" class=\"site-title\">{{ project_name }}</a>\n            <nav>\n                <a href=\"index.html\" class=\"active\">Log</a>\n                <a href=\"refs.html\">Refs</a>\n            </nav>\n{% endblock %}\n{% block body %}\n        <main>\n            {% if clone_url %}\n            <div class=\"clone-box\">\n                <span class=\"clone-label\">Clone</span>\n                <span class=\"clone-url\">git clone {{ clone_url }}</span>\n            </div>\n            {% endif %}\n\n            {% if branch_nav | length > 1 %}\n            <div class=\"branch-switcher\">\n                {% for b in branch_nav %}\n                <a href=\"{{ b.filename }}\"{% if b.is_current %} class=\"active\"{% endif %}>{{ b.short_name  }}</a>\n                {% endfor %}\n            </div>\n            {% endif %}\n\n            <h2 class=\"section-heading\">{{ current_branch }}</h2>\n            <table>\n                <thead>\n                    <tr>\n                        <th>Hash</th>\n                        <th>Subject</th>\n                        <th>Author</th>\n                        <th>Date</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    {% for commit in commits %}\n                    <tr>\n                        <td class=\"commit-hash-cell\">\n                            <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 %}\n                        </td>\n                        <td>{{ commit.subject }}</td>\n                        <td>{{ commit.author_name }}</td>\n                        <td><time datetime=\"{{ commit.date_iso }}\">{{ commit.date }}</time></td>\n                    </tr>\n                    {% endfor %}\n                </tbody>\n            </table>\n            {% if truncated %}\n            <p style=\"margin-top:1rem; font-size:0.85rem; color:var(--text-muted);\">\n                Showing the {{ commits | length }} most recent commits.\n            </p>\n            {% endif %}\n        </main>\n{% endblock %}\n";