Skip to main content

LABEL_INDEX_HTML

Constant LABEL_INDEX_HTML 

Source
pub const LABEL_INDEX_HTML: &str = "{% extends \"base.html\" %}\n\n{% block title %}{{ label }} - {{ site_title }}{% endblock %}\n\n{% block content %}\n<h1>Label: {{ label }}</h1>\n<p class=\"page-description\">{{ specs | length }} spec(s) with this label</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>Status</th>\n            <th>Type</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        </tr>\n        {% endfor %}\n    </tbody>\n</table>\n{% else %}\n<p class=\"empty-state\">No specs with label \"{{ label }}\"</p>\n{% endif %}\n{% endblock %}\n";