Skip to main content

INDEX_HTML

Constant INDEX_HTML 

Source
pub const INDEX_HTML: &str = "{% extends \"base.html\" %}\n\n{% block title %}{{ site_title }}{% endblock %}\n\n{% block content %}\n<h1>{{ site_title }}</h1>\n\n<section class=\"stats-summary\">\n    <div class=\"stat-card\">\n        <span class=\"stat-number\">{{ stats.total }}</span>\n        <span class=\"stat-label\">Total Specs</span>\n    </div>\n    <div class=\"stat-card completed\">\n        <span class=\"stat-number\">{{ stats.completed }}</span>\n        <span class=\"stat-label\">Completed</span>\n    </div>\n    <div class=\"stat-card in-progress\">\n        <span class=\"stat-number\">{{ stats.in_progress }}</span>\n        <span class=\"stat-label\">In Progress</span>\n    </div>\n    <div class=\"stat-card pending\">\n        <span class=\"stat-number\">{{ stats.pending }}</span>\n        <span class=\"stat-label\">Pending</span>\n    </div>\n</section>\n\n<section class=\"recent-specs\">\n    <h2>Recent Specs</h2>\n    <table class=\"spec-table\">\n        <thead>\n            <tr>\n                <th>ID</th>\n                <th>Title</th>\n                <th>Status</th>\n                <th>Type</th>\n                <th>Labels</th>\n            </tr>\n        </thead>\n        <tbody>\n            {% for spec in specs %}\n            <tr>\n                <td><a href=\"{{ base_url }}specs/{{ spec.id }}.html\">{{ spec.short_id }}</a></td>\n                <td><a href=\"{{ base_url }}specs/{{ spec.id }}.html\">{{ spec.title | default(value=\"Untitled\") }}</a></td>\n                <td><span class=\"status-badge status-{{ spec.status | slugify }}\">{{ spec.status }}</span></td>\n                <td>{{ spec.type }}</td>\n                <td>\n                    {% for label in spec.labels %}\n                    <span class=\"label-badge\">{{ label }}</span>\n                    {% endfor %}\n                </td>\n            </tr>\n            {% endfor %}\n        </tbody>\n    </table>\n</section>\n{% endblock %}\n";