diary nav shows 3 preceding and 3 suceding numbers

This commit is contained in:
chimchooree
2020-10-01 18:37:38 -05:00
parent b77700f2df
commit 04f23c4e29
2 changed files with 16 additions and 32 deletions
+9 -1
View File
@@ -2,7 +2,15 @@
<div class="dir-row"> </div>
<div class="diary-dir">
{{nav}}
% for i in range(max(0,page - limit), min(total,page + limit)):
% if i == page:
<b>
% end
{{i}}
% if i == page:
</b>
% end
% end
</div>
<!--left column-->