Skip to main content

TEMPLATE_GIT_REFS_HTML

Constant TEMPLATE_GIT_REFS_HTML 

Source
pub const TEMPLATE_GIT_REFS_HTML: &str = "{% extends \"base.html\" %}\n{% block head %}\n        <title>{{ project_name }} \u{2014} Refs</title>\n{% endblock %}\n{% block header %}\n            <a href=\"{{ root_path }}\" class=\"site-title\">{{ project_name }}</a>\n            <nav>\n                <a href=\"index.html\">Log</a>\n                <a href=\"refs.html\" class=\"active\">Refs</a>\n            </nav>\n{% endblock %}\n{% block body %}\n        <main>\n            {% if tags %}\n            <h2 class=\"section-heading\">Tags</h2>\n            <table>\n                <thead><tr><th>Tag</th><th>Hash</th></tr></thead>\n                <tbody>\n                    {% for ref in tags %}\n                    <tr id=\"tag-{{ ref.short_name }}\">\n                        <td><a class=\"ref-kind-tag\" href=\"commit/{{ ref.hash }}.html\">{{ ref.short_name | escape }}</a></td>\n                        <td><a class=\"hash\" href=\"commit/{{ ref.hash }}.html\">{{ ref.hash_short }}</a></td>\n                    </tr>\n                    {% endfor %}\n                </tbody>\n            </table>\n            {% endif %}\n\n            {% if branches %}\n            <h2 class=\"section-heading\">Branches</h2>\n            <table>\n                <thead><tr><th>Branch</th><th>Hash</th></tr></thead>\n                <tbody>\n                    {% for ref in branches %}\n                    <tr>\n                        <td><a class=\"ref-kind-branch\" href=\"commit/{{ ref.hash }}.html\">{{ ref.short_name }}</a></td>\n                        <td><a class=\"hash\" href=\"commit/{{ ref.hash }}.html\">{{ ref.hash_short }}</a></td>\n                    </tr>\n                    {% endfor %}\n                </tbody>\n            </table>\n            {% endif %}\n\n            {% if not tags and not branches %}\n            <p style=\"color: var(--text-muted);\">No refs found.</p>\n            {% endif %}\n        </main>\n{% endblock %}\n";