Skip to content

Commit ecfcf6e

Browse files
Code refactoring
1 parent b2c1177 commit ecfcf6e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

templates/auctions_category.html

Lines changed: 6 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

@@ -38,6 +39,7 @@ <h1 class='h3 mb-4 text-gray-800'>Category: {{ title }}</h1>
3839
{% for auction in pages %}
3940
<div class='col mb-5'>
4041
<div class='card h-100'>
42+
4143
<!-- Product image-->
4244
<div class='auction_image_first d-flex justify-content-center'>
4345
<div class='auction_image_second'>
@@ -98,6 +100,7 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
98100
<a class='page-link' href='#'>&laquo;</a>
99101
</li>
100102
{% endif %}
103+
101104
{% for i in pages.paginator.page_range %}
102105
{% if pages.number == i %}
103106
<li class='page-item active'>
@@ -109,6 +112,7 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
109112
</li>
110113
{% endif %}
111114
{% endfor %}
115+
112116
{% if pages.has_next %}
113117
<li class='page-item'>
114118
<a class='page-link' href='?page={{ pages.next_page_number }}'>
@@ -120,6 +124,7 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
120124
<a class='page-link' href='#'>&raquo;</a>
121125
</li>
122126
{% endif %}
127+
123128
</ul>
124129
</div>
125130
{% endif %}
@@ -134,4 +139,4 @@ <h5 class='fw-bolder'>{{ auction.title }}</h5>
134139
</div>
135140
{% endif %}
136141

137-
{% endblock %}
142+
{% endblock %}

0 commit comments

Comments
 (0)