Skip to content

Commit

Permalink
Change gap in pagination links from '...' to '<span class="gap">&hell…
Browse files Browse the repository at this point in the history
…ip;</span>'.

That way it can be better styled or manipulated via the DOM.
  • Loading branch information
mislav committed Apr 4, 2008
1 parent c314477 commit 3f770b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/will_paginate/view_helpers.rb
Expand Up @@ -163,7 +163,9 @@ def html_attributes

protected

def gap_marker; '...'; end
def gap_marker
'<span class="gap">&hellip;</span>'
end

def windowed_links
prev = nil
Expand Down
2 changes: 1 addition & 1 deletion test/pagination_test.rb
Expand Up @@ -171,7 +171,7 @@ def test_will_paginate_windows
assert_select elements.last, 'a', "Next &raquo;"
end
assert_select 'span.current', entries.current_page.to_s
assert_equal '&laquo; Previous 1 2 ... 5 6 7 ... 10 11 Next &raquo;', pagination.first.inner_text
assert_equal '&laquo; Previous 1 2 &hellip; 5 6 7 &hellip; 10 11 Next &raquo;', pagination.first.inner_text
end
end

Expand Down

0 comments on commit 3f770b7

Please sign in to comment.