{% load i18n static cosinnus_tags widget_tweaks %} {% group_url 'cosinnus:poll:list' group=group as poll_list_page %} {% group_url 'cosinnus:poll:list_past' group=group as poll_list_past_page %} {% if return_to == "polls" %} {% trans "Back to Polls" %} {% else %} {# Poll list view #} {% if running_polls_count %} {{ running_polls_count }} {% else %} {% endif %} {% if request.path == poll_list_page or poll and poll.state < 3 %} {% endif %} {% trans "Polls" %} {% comment %} {% if past_polls_count or past_polls_count%} {{ past_polls_count }} {% else %} {% endif %} {% endcomment %} {% if request.path == poll_list_past_page or poll and poll.state == 3 %} {% endif %} {% trans "Past Polls" %} {% endif %}