cluster variable is stored in index.py
This commit is contained in:
+1
-4
@@ -4,9 +4,6 @@
|
||||
<div class="diary-dir">
|
||||
<center>
|
||||
% max_pages = int((total - 1) / limit)
|
||||
% cluster = 3
|
||||
% # TRY DECIMAL POINT PAGES
|
||||
|
||||
<%
|
||||
# page never below 0
|
||||
if page <= 0:
|
||||
@@ -31,7 +28,7 @@
|
||||
% # fill out number cluster to the left when page is high
|
||||
% 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>
|
||||
<a href=/diary/{{max_pages - cluster * 2 + j}}>{{max_pages - cluster * 2 + j}}</a>
|
||||
% end
|
||||
% end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user