Skip to main content

STATUS_INDEX_HTML

Constant STATUS_INDEX_HTML 

Source
pub const STATUS_INDEX_HTML: &str = "{% extends \"base.html\" %}\n\n{% block title %}{{ status_display }} Specs - {{ site_title }}{% endblock %}\n\n{% block content %}\n<h1>{{ status_display }} Specs</h1>\n<p class=\"page-description\">{{ specs | length }} spec(s) with status: {{ status_display }}</p>\n\n{% if specs | length > 0 %}\n<table class=\"spec-table\">\n    <thead>\n        <tr>\n            <th>ID</th>\n            <th>Title</th>\n            <th>Type</th>\n            <th>Labels</th>\n            {% if status == \"completed\" %}\n            <th>Completed</th>\n            {% endif %}\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>{{ spec.type }}</td>\n            <td>\n                {% for label in spec.labels %}\n                <span class=\"label-badge\">{{ label }}</span>\n                {% endfor %}\n            </td>\n            {% if status == \"completed\" %}\n            <td>{{ spec.completed_at | default(value=\"-\") }}</td>\n            {% endif %}\n        </tr>\n        {% endfor %}\n    </tbody>\n</table>\n{% else %}\n<p class=\"empty-state\">No specs with status \"{{ status_display }}\"</p>\n{% endif %}\n{% endblock %}\n";