{% extends "sakai/base.html" %}{% load molly_sakai %}{% load i18n %} {% block content %} {% regroup polls by siteId as polls_by_siteId %} {% for poll_set in polls_by_siteId %}

{{ poll_set.list.0.siteTitle }}

{% for poll in poll_set.list %} {% endfor %}
{% trans "Question" %} {% trans "Status" %}
{{ poll.text }} {% if poll.hasOpened %} {% blocktrans with poll.voteClose|timeuntil as timeuntilclose %}Closes in {{ timeuntilclose }}.{% endblocktrans %} {% else %} {% blocktrans with poll.voteOpen|timeuntil as time_until_open and poll.voteClose|timeuntil:poll.voteOpen as time_open %}Opens in {{ time_until_open }} for {{ time_open }}.{% endblocktrans %} {% endif %}
{% empty %}

{% trans "Polls" %}

{% trans "There aren't currently any polls." %}
{% endfor %} {% endblock %}