1. Peter Sheats
  2. htsql

Source

htsql / demo / django / tutorial / templates / polls / index.html

1
2
3
4
5
6
7
8
9
{% if latest_poll_list %}
    <ul>
    {% for poll in latest_poll_list %}
        <li><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a></li>
    {% endfor %}
    </ul>
{% else %}
    <p>No polls are available.</p>
{% endif %}