Skip to content

Commit

Permalink
Edited lib/dm-pager/pager.rb via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
tmann-ttc committed Mar 8, 2011
1 parent 9c58360 commit 3025f08
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/dm-pager/pager.rb
@@ -1,4 +1,3 @@

module DataMapper
class Pager

Expand Down Expand Up @@ -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

##
Expand Down

0 comments on commit 3025f08

Please sign in to comment.