{% extends "base_template.html" %} {% block title %}{{ _('Responses') }} — {{ survey.title }}{% endblock %} {% block content %}
← {{ _('All surveys') }}

{{ _('Responses to %(t)s', t=survey.title) }}

{{ ngettext('%(n)d response', '%(n)d responses', total, n=total) }}

{% for r in results %}

{{ loop.index }}. {{ r.question.prompt }}

{{ _(r.question.type) }} · {{ ngettext('%(n)d answer', '%(n)d answers', r.n, n=r.n) }}{% if r.average is defined and r.average is not none %} · {{ _('average') }} {{ r.average }}{% endif %}

{% if r.counts is defined %} {% set mx = (r.counts.values() | max) if r.counts else 0 %}
{% for label, n in r.counts | dictsort %}
{{ label }}
{{ n }}
{% endfor %}
{% elif r.texts is defined %} {% if r.texts %} {% else %}

{{ _('No answers yet.') }}

{% endif %} {% endif %}
{% else %}

{{ _('This survey has no questions yet.') }}

{% endfor %} {% endblock %}