wrong numbers fill out left side when page is high

small-nav
chimchooree 4 years ago
parent 4c3a9a2b52
commit 315e4103f6

@ -29,9 +29,9 @@
% end
% # fill out number cluster to the left when page is high
% if page >= max_pages - cluster:
% for j in range(page - cluster):
<a href=/diary/{{page + j + cluster + 1}}><b>{{page + j + cluster + 1}}</b></a>
% if page > max_pages - cluster:
% for j in range(cluster - max_pages + page):
<a href=/diary/{{page + j + cluster + 1}}><b><i>{{page + j + cluster + 1}}</b></i></a>
% end
% end

Loading…
Cancel
Save