File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ <h4 class="no-data">{% trans 'There is no published article yet' %}. <a href="{%
7575 </ ul >
7676 {% endif %}
7777
78-
7978 </ div >
8079
8180 <!-- Sidebar Widgets Column -->
Original file line number Diff line number Diff line change @@ -51,6 +51,28 @@ <h5 class="card-header">{% trans 'Questions by topic' %}</h5>
5151 {% empty %}
5252 < h4 class ="no-data "> {% trans "No question to display" %}</ h4 >
5353 {% endfor %}
54+
55+ {% if is_paginated %}
56+ < ul class ="pagination justify-content-center mb-4 ">
57+ {% if page_obj.has_previous %}
58+ < li class ="page-item "> < a class ="page-link " href ="?page={{ page_obj.previous_page_number }} "> ← {% trans 'Newer' %}</ a > </ li >
59+ {% else %}
60+ < li class ="page-item disabled "> < a class ="page-link " href ="# "> < span > ←</ span > </ a > </ li >
61+ {% endif %}
62+ {% for i in paginator.page_range %}
63+ {% if page_obj.number == i %}
64+ < li class ="page-item disabled "> < a class ="page-link " href ="# "> {{ i }} < span class ="sr-only "> (current)</ span > </ a > </ li >
65+ {% else %}
66+ < li class ="page-item "> < a class ="page-link " href ="?page={{ i }} "> {{ i }}</ a > </ li >
67+ {% endif %}
68+ {% endfor %}
69+ {% if page_obj.has_next %}
70+ < li class ="page-item "> < a class ="page-link " href ="?page={{ page_obj.next_page_number }} "> {% trans 'Older' %} →</ a > </ li >
71+ {% else %}
72+ < li class ="page-item disabled "> < a class ="page-link " href ="# "> < span > →</ span > </ a > </ li >
73+ {% endif %}
74+ </ ul >
75+ {% endif %}
5476 </ div >
5577{% endblock content %}
5678
You can’t perform that action at this time.
0 commit comments