{% extends "cranefly/layout.html" %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=_("Poll Participants"),parent=thread.name) }}{% endblock %} {% block breadcrumb %}{{ super() }} {{ macros.parents_list(parents) }}
  • {{ thread.name }}
  • {% trans %}Poll Participants{% endtrans %} {%- endblock %} {% block container %}
    {% for option in options %}

    {{ option.name }} {% if option.pk in user_votes %}{% trans %}Your vote{% endtrans %}{% endif %} {% trans votes=option.votes, percent=((option.votes * 100 / poll.votes) if poll.votes else 0)|int -%} {{ votes }} vote, {{ percent }}% of all {%- pluralize -%} {{ votes }} votes, {{ percent }}% of all {%- endtrans %}

    {% if option.votes %} {% for row in option.votes_list|batch(4, '') %} {% for vote in row %} {% endfor %} {% endfor %}
    {% if vote %} {{ vote_details(vote) }} {% else %}   {% endif %}
    {% else %}

    {% trans %}Nobody voted for this option.{% endtrans %}

    {% endif %}
    {% if not loop.last %}
    {% endif %} {% endfor %}
    {% endblock %} {% block javascripts %}{{ super() }} {% endblock %} {% macro vote_details(vote) %} {% if vote.user_id %} {{ vote.user_name }} {% else %} {{ vote.user_name }} {% endif %} {% endmacro %}