public
Rubygem
Description: Most awesome pagination solution for Ruby
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/mislav/will_paginate.git
Click here to lend your support to: will_paginate and make a donation at www.pledgie.com !
Change gap in pagination links from '...' to '<span 
class="gap">&hellip;</span>'.
That way it can be better styled or manipulated via the DOM.
Mislav Marohnić (author)
Thu Apr 03 19:36:28 -0700 2008
commit  3f770b7c414d2dfdca8c83cc5d85ecc4ddf1f083
tree    2864314b6f7a7c7f97d5351ea0fbf4e5347366be
parent  c314477eb9c6cd7e32b183efd3dec4b00af1f2f0
...
163
164
165
166
 
 
 
167
168
169
...
163
164
165
 
166
167
168
169
170
171
0
@@ -163,7 +163,9 @@ module WillPaginate
0
     
0
   protected
0
 
0
-    def gap_marker; '...'; end
0
+    def gap_marker
0
+      '<span class="gap">&hellip;</span>'
0
+    end
0
     
0
     def windowed_links
0
       prev = nil
...
171
172
173
174
 
175
176
177
...
171
172
173
 
174
175
176
177
0
@@ -171,7 +171,7 @@ class PaginationTest < Test::Unit::TestCase
0
         assert_select elements.last, 'a', "Next &raquo;"
0
       end
0
       assert_select 'span.current', entries.current_page.to_s
0
-      assert_equal '&laquo; Previous 1 2 ... 5 6 7 ... 10 11 Next &raquo;', pagination.first.inner_text
0
+      assert_equal '&laquo; Previous 1 2 &hellip; 5 6 7 &hellip; 10 11 Next &raquo;', pagination.first.inner_text
0
     end
0
   end
0
 

Comments