{% trans motion.state.name %}
{% with motion.polls.all as polls %}
{% if polls.exists and polls.0.has_votes %}
{% for poll in polls reversed %}
{% if poll.has_votes %}
{% if polls|length > 1 %}
{{ poll.poll_number|ordinal|safe }} {% trans "Vote" %}:
{% else %}
{% trans "Poll result" %}:
{% endif %}
{% with poll.get_options.0 as option %}
{% endwith %}
{% else %}
{% if poll|length == 1 %}
{% trans "No result available." %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% trans "Submitter" %}:
{% for submitter in motion.submitter.all %}
{{ submitter.person }}{% if not forloop.last %}, {% endif %}
{% empty %}
-
{% endfor %}
{% with motion.supporter.all as supporters %}
{% if supporters|length > 0 %}
{% trans "Supporters" %}:
{% for supporter in supporters %}
{{ supporter.person }}{% if not forloop.last %}, {% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% if motion.category %}
{% trans "Category" %}:
{{ motion.category }}
{% endif %}
{{ motion.active_version.title }}
{% trans "Motion" %} {{ motion.identifier|default:'' }}
{% if motion.get_active_version.version_number > 1 %} | {% trans 'Version' %} {{ motion.active_version.version_number }}{% endif %}