Skip to main content

TEMPLATE_GIT_BLOB_HTML

Constant TEMPLATE_GIT_BLOB_HTML 

Source
pub const TEMPLATE_GIT_BLOB_HTML: &str = "{% extends \"base.html\" %}\n{% block head %}\n        <title>{{ project_name }} \u{2014} {{ filename }}</title>\n{% endblock %}\n{% block header %}\n            <a href=\"{{ root_path }}\" class=\"site-title\">{{ project_name }}</a>\n            <nav>\n                <a href=\"{{ root_path }}repository/index.html\">Log</a>\n                <a href=\"{{ root_path }}repository/refs.html\">Refs</a>\n            </nav>\n{% endblock %}\n{% block body %}\n        <main>\n            <nav class=\"breadcrumb\">\n                {% for crumb in breadcrumbs %}\n                {% if not loop.last %}<span class=\"breadcrumb-sep\">/</span>{% endif %}\n                {% if crumb.url %}<a href=\"{{ crumb.url }}\">{{ crumb.name | escape }}</a>{% else %}<span>{{ crumb.name | escape }}</span>{% endif %}\n                {% endfor %}\n            </nav>\n\n            <p class=\"tree-rev\">at <a class=\"hash\" href=\"{{ commit_url }}\">{{ commit_hash_short }}</a></p>\n\n            {% if is_binary %}\n            <p class=\"blob-notice\">Binary file ({{ size }} bytes)</p>\n            {% elif too_large %}\n            <p class=\"blob-notice\">File too large to display ({{ size }} bytes)</p>\n            {% elif content_html %}\n            <div class=\"blob-content\">{{ content_html | safe }}</div>\n            {% else %}\n            <p class=\"blob-notice\">Empty file</p>\n            {% endif %}\n        </main>\n{% endblock %}\n";