Skip to content

Commit b2c1177

Browse files
Code refactoring
1 parent 7578168 commit b2c1177

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

templates/auctions_active.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
{% block title %}Auctions | {{ title }} {% endblock %}
44

55
{% block categories %}
6+
67
<!-- Divider -->
78
<hr class='sidebar-divider'>
89

@@ -84,6 +85,7 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
8485
{% if pages.has_other_pages %}
8586
<div class='d-flex justify-content-center'>
8687
<ul class='pagination'>
88+
8789
{% if pages.has_previous %}
8890
<li class='page-item'>
8991
<a class='page-link' href='?page={{ pages.previous_page_number }}'>
@@ -95,6 +97,7 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
9597
<a class='page-link' href='#'>&laquo;</a>
9698
</li>
9799
{% endif %}
100+
98101
{% for i in pages.paginator.page_range %}
99102
{% if pages.number == i %}
100103
<li class='page-item active'>
@@ -106,6 +109,7 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
106109
</li>
107110
{% endif %}
108111
{% endfor %}
112+
109113
{% if pages.has_next %}
110114
<li class='page-item'>
111115
<a class='page-link' href='?page={{ pages.next_page_number }}'>
@@ -117,11 +121,13 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
117121
<a class='page-link' href='#'>&raquo;</a>
118122
</li>
119123
{% endif %}
124+
120125
</ul>
121126
</div>
122127
{% endif %}
128+
123129
</div>
124130
</div>
125131
</div>
126132

127-
{% endblock %}
133+
{% endblock %}

0 commit comments

Comments
 (0)