{# Partial: collapsible citations. Expects: - uid - citations (iterable with .score, .filename, .source, .text_preview) - files_base_url #} {% if citations and citations|length > 0 %}
Citations ({{ citations|length }}):
{% for c in citations %}
#{{ loop.index }} Score: {{ c.score|fmt_score }} – {{ c.filename|e }}

{{ c.text_preview|e }}

{% endfor %}
{% else %}

Citations (0)

{% endif %}