diff --git a/polls/templates/polls/index.html b/polls/templates/polls/index.html index ee0d853..f07875d 100644 --- a/polls/templates/polls/index.html +++ b/polls/templates/polls/index.html @@ -3,16 +3,17 @@ {% block content %} Recent Polls - - {% if latest_question_list %} - {% for question in latest_question_list %} - - {{ question.question_text }} - - {% endfor %} - {% else %} - No polls are available. - {% endif %} - + + {% if latest_question_list %} + {% for question in latest_question_list %} + + {{ question.question_text }} + Published on: {{ question.pub_date|date:"F j, Y" }} + + {% endfor %} + {% else %} + No polls are available. + {% endif %} + {% endblock content %}
No polls are available.
Published on: {{ question.pub_date|date:"F j, Y" }}