Fix a bug in blog navigation bar
This commit is contained in:
parent
9070fb79dd
commit
933035314b
2
views.py
2
views.py
|
@ -73,7 +73,7 @@ def createNavigationBar(blog_id, cur_page, nb_pages):
|
|||
if cur_page == nb_pages:
|
||||
navigation_bar += ' > >>'
|
||||
else:
|
||||
navigation_bar += ' <a href="/blog/%d?page=%d">></a>' % (blog_id, nb_pages)
|
||||
navigation_bar += ' <a href="/blog/%d?page=%d">></a>' % (blog_id, cur_page+1)
|
||||
navigation_bar += ' <a href="/blog/%d?page=%d">>></a>' % (blog_id, nb_pages)
|
||||
|
||||
return navigation_bar
|
||||
|
|
Loading…
Reference in New Issue
Block a user