From 42459b0c74bfed2c6ebeae78b9bd36b40e04b618 Mon Sep 17 00:00:00 2001 From: mst Date: Fri, 28 Feb 2025 07:23:33 +0300 Subject: [PATCH] auto-pagination --- templates/snippets/layout/questions_list.html | 54 +++++++++---------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/templates/snippets/layout/questions_list.html b/templates/snippets/layout/questions_list.html index c863401..c5f6bf2 100644 --- a/templates/snippets/layout/questions_list.html +++ b/templates/snippets/layout/questions_list.html @@ -1,44 +1,40 @@ -{% for item in combined %} -{% with question=item.question, answers=item.answers, showViewQuestionBtn=True, multipleAnswers=True %} -{% include 'snippets/layout/question_card.html' %} -{% endwith %} -{% endfor %} +
+ {% for item in combined %} + {% with question=item.question, answers=item.answers, showViewQuestionBtn=True, multipleAnswers=True %} + {% include 'snippets/layout/question_card.html' %} + {% endwith %} + {% endfor %} +
+ + {% if combined|length == per_page %} +
+ Loading... +
+ {% endif %} + +