From 1f3840c0b80b84e7c42821292a6f48ef40ee7d9c Mon Sep 17 00:00:00 2001 From: sosokker Date: Mon, 28 Aug 2023 23:11:33 +0700 Subject: [PATCH] Add publication to poll cards. --- polls/templates/polls/index.html | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) 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 %} - - {% 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 %}