{% for kind, n in doc.counts.items() %}
{{ kind }} × {{ n }}
{% endfor %}
{% for author, n in doc.authors.items() %}
{{ author }} ({{ n }})
{% endfor %}
{% endif %}
{{ doc.html|safe }}
{% if doc.comments %}
Comments
{% for c in doc.comments %}
{{ c.id }} {{ c.author }}{% if c.initials %} ({{ c.initials }}){% endif %}
{{ c.text }}