Skip to main content

TEMPLATE_GIT_LOG

Constant TEMPLATE_GIT_LOG 

Source
pub const TEMPLATE_GIT_LOG: &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} {{ current_branch }}</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\" class=\"active\">Log</a>\n            <a href=\"refs.html\">Refs</a>\n        </nav>\n    </header>\n    <main>\n        {% if clone_url %}\n        <div class=\"clone-box\">\n            <span class=\"clone-label\">Clone</span>\n            <span class=\"clone-url\">git clone {{ clone_url }}</span>\n        </div>\n        {% endif %}\n\n        {% if branch_nav | length > 1 %}\n        <div class=\"branch-switcher\">\n            {% for b in branch_nav %}\n            <a href=\"{{ b.filename }}\"{% if b.is_current %} class=\"active\"{% endif %}>{{ b.short_name  }}</a>\n            {% endfor %}\n        </div>\n        {% endif %}\n\n        <h2 class=\"section-heading\">{{ current_branch }}</h2>\n        <table>\n            <thead>\n                <tr>\n                    <th>Hash</th>\n                    <th>Subject</th>\n                    <th>Author</th>\n                    <th>Date</th>\n                </tr>\n            </thead>\n            <tbody>\n                {% for commit in commits %}\n                <tr>\n                    <td class=\"commit-hash-cell\">\n                        <a class=\"hash\" href=\"commit/{{ commit.hash }}.html\">{{ commit.hash_short }}</a>{% for badge in commit.ref_badges %}<span class=\"ref-badge ref-badge-{{ badge.kind }}\">{{ badge.label }}</span>{% endfor %}\n                    </td>\n                    <td>{{ commit.subject }}</td>\n                    <td>{{ commit.author_name }}</td>\n                    <td><time datetime=\"{{ commit.date_iso }}\">{{ commit.date }}</time></td>\n                </tr>\n                {% endfor %}\n            </tbody>\n        </table>\n        {% if truncated %}\n        <p style=\"margin-top:1rem; font-size:0.85rem; color:var(--text-muted);\">\n            Showing the {{ commits | length }} most recent commits.\n        </p>\n        {% endif %}\n    </main>\n</body>\n</html>\n";