{% extends "base.html" %} {% block title %}Templates{% endblock %} {% block actions %}
{% set f = active_filter %} All {{ total }} AI-generated Manual Stale
{% endblock %} {% block content %} {% if templates_root %}

Reading from {{ templates_root }}

{% endif %} {% if items %}
{% for t in items %} {% endfor %}
Path Tags Status Manual
{% if editor_corpus_id %} {# Schema-driven editor (CodeMirror + frontmatter form). Falls back to the legacy preview page when templates_root isn't in any registered corpus — see cowork_pages.page_templates. #} {% set editor_path = (editor_path_prefix ~ '/' ~ t.path) if editor_path_prefix else t.path %} {{ t.path }} {% else %} {{ t.path }} {% endif %} {{ t.tags|join(', ') if t.tags else '—' }} {% if t.staleness == 'fresh' %}fresh {% elif t.staleness == 'stale' %}stale {% elif t.staleness == 'very-stale' %}very stale {% else %}unknown{% endif %} {% if t.manual %}pinned{% endif %}
{% else %}

No templates found{% if active_filter != 'all' %} matching the {{ active_filter }} filter{% endif %}.

{% endif %} {% endblock %} {% block scripts %} {% endblock %}