Skip to main content

TEMPLATE_GIT_TREE

Constant TEMPLATE_GIT_TREE 

Source
pub const TEMPLATE_GIT_TREE: &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} {{ dir_path | default(value=\"~\") }}</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=\"{{ root_path }}repository/index.html\">Log</a>\n            <a href=\"{{ root_path }}repository/refs.html\">Refs</a>\n        </nav>\n    </header>\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</body>\n</html>\n";