Skip to content

Commit

Permalink
No older button if there is only one paste.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Dec 30, 2011
1 parent b9377bf commit 9328701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/refheap/views/common.clj
Expand Up @@ -44,5 +44,5 @@
[:div.centered
(when-not (= 1 page)
[:a#newer.pagebutton {:href (str "/pastes?page=" (dec page))} "newer"])
(when-not (= page (paste/count-pages n))
(when-not (or (zero? n) (= page (paste/count-pages n)))
[:a.pagebutton {:href (str "/pastes?page=" (inc page))} "older"])])

0 comments on commit 9328701

Please sign in to comment.