{% if templates %}
{% for template in templates %}
{% if template.is_default %} {% endif %} {{ template.name }}
{% if template.description %}

{{ template.description }}

{% endif %}
{{ template.created_by.first_name if template.created_by else 'Unknown' }}
{{ template.created_at.strftime('%Y-%m-%d') if template.created_at else 'N/A' }}
Configuration Summary:
{% if template.config.get('genera') %}
Genera: {% for genus in template.config.genera[:2] %} {{ genus }} {% endfor %} {% if template.config.genera|length > 2 %} +{{ template.config.genera|length - 2 }} more {% endif %}
{% endif %} {% if template.config.get('max_pages_per_genus') %}
Max Pages: {{ template.config.max_pages_per_genus }}
{% endif %}
{% if template.config.get('detailed_analysis') %}
Detailed Analysis
{% endif %} {% if template.config.get('upload_to_drive') %}
Google Drive Upload
{% endif %} {% if template.config.get('generate_reports') %}
Generate Reports
{% endif %}
Used {{ template.usage_count }} times
{% endfor %}
{% else %}

No Templates Yet

Create your first pipeline template to reuse configurations

Create Your First Template
{% endif %}