Skip to content

Commit

Permalink
Reverse previous articles so that clicking is more intuitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
lethain committed Mar 26, 2011
1 parent 19dd2a0 commit 38e097c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def context_module(page, limit=2, cli=None):
before = None
after = None
if pages[:limit]:
before = {"title":"Previous", "pages":pages[:limit]}
before = {"title":"Previous", "pages":reversed(pages[:limit])}
if pages[limit+1:]:
after = {"title":"Next", "pages":pages[limit+1:]}
return (before, after)
Expand Down

0 comments on commit 38e097c

Please sign in to comment.