Source

JythonBook / src / chapter14 / tour / pollsite / polls / templates / polls / index.html

Full commit
Josh Juneau d9b2bb8 











{% extends 'base.html' %}
{% block content %}
{% if latest_poll_list %}
<ul>
  {% for poll in latest_poll_list %}
  <li><a href="{{ poll.id }}/">{{ poll.question }}</a></li>
  {% endfor %}
</ul>
{% else %}
<p>No polls are available.</p>
{% endif %}
{% endblock %}