Skip to main content

TEMPLATE_GIT_TREE_HTML

Constant TEMPLATE_GIT_TREE_HTML 

Source
pub const TEMPLATE_GIT_TREE_HTML: &str = "{% extends \"base.html\" %}\n{% block head %}\n        <title>{{ project_name }} \u{2014} {{ dir_path | default(value=\"~\") }}</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            <table class=\"tree-table\">\n                <tbody>\n                    {% for entry in entries %}\n                    <tr>\n                        <td class=\"tree-mode tree-mode-{{ entry.kind }}\"></td>\n                        <td>\n                            {% if entry.kind == \"tree\" %}\n                            <a class=\"tree-entry-tree\" href=\"{{ entry.url }}\">{{ entry.name | escape }}/</a>\n                            {% else %}\n                            <a class=\"tree-entry-blob\" href=\"{{ entry.url }}\">{{ entry.name | escape }}</a>\n                            {% endif %}\n                        </td>\n                    </tr>\n                    {% endfor %}\n                </tbody>\n            </table>\n\n            <p class=\"tree-rev\">at <a class=\"hash\" href=\"{{ commit_url }}\">{{ commit_hash_short }}</a></p>\n        </main>\n{% endblock %}\n";