{% extends "security_canvas/base.html" %} {% block title %}Template Gallery — Security Design Canvas{% endblock %} {% block content %} {% set categories = {} %} {% for t in templates %} {% if t.category not in categories %} {% if categories.update({t.category: []}) %}{% endif %} {% endif %} {% if categories[t.category].append(t) %}{% endif %} {% endfor %} {% for cat, items in categories.items() %}

{{ cat }}

{% for t in items %}
{{ t.name }}
{{ t.category }}
{{ t.description[:200] if t.description else '' }}
{% if t.tags %}
{% endif %}
{% endfor %}
{% endfor %} {% if not templates %}
No security templates found. Run python tools/security_canvas/db/init_db.py to seed templates.
{% endif %} {% endblock %} {% block scripts %} {% endblock %}