Skip to main content

TEMPLATE_GIT_REFS

Constant TEMPLATE_GIT_REFS 

Source
pub const TEMPLATE_GIT_REFS: &str = "<!doctype html>\n<html lang=\"{{ lang | default(value=\'en\') }}\">\n<head>\n    <meta charset=\"utf-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n    <title>{{ project_name }} \u{2014} Refs</title>\n    <link rel=\"stylesheet\" href=\"{{ root_path }}static/site.css\" />\n</head>\n<body>\n    <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    </header>\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><span class=\"ref-kind-tag\">{{ ref.short_name | escape }}</span></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><span class=\"ref-kind-branch\">{{ ref.short_name }}</span></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</body>\n</html>\n";