{% extends "base.html" %}

{% load i18n %}

{% block content %}
<h1>{% trans "Polls" %}</h1>
{% if poll_list %}
<ul>
    {% for poll in poll_list.all %}
    <li><a href="{% url 'polls:detail' poll.id %}">{{poll.question}}</a></li>
    {% endfor %}
</ul>
{% else %}
{% trans "There are no polls available." %}
{% endif %}
{% endblock %}
