Permalink
Browse files

Edited lib/dm-pager/pager.rb via GitHub

  • Loading branch information...
1 parent 9c58360 commit 3025f0833bdf18ee490efe225ad895bddb37a16c @tmann-ttc tmann-ttc committed Mar 8, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/dm-pager/pager.rb
View
@@ -1,4 +1,3 @@
-
module DataMapper
class Pager
@@ -130,14 +129,14 @@ def next_link
# Last link.
def last_link
- li 'last jump', link_to(total_pages, option(:last_text)) if next_page
+ li 'last jump', link_to(total_pages, option(:last_text)) if next_page && !option(:last_text).empty?
end
##
# First link.
def first_link
- li 'first jump', link_to(1, option(:first_text)) if previous_page
+ li 'first jump', link_to(1, option(:first_text)) if previous_page && !option(:first_text).empty?
end
##

0 comments on commit 3025f08

Please sign in to comment.