Skip to content
Browse files

Make gap configurable.

  • Loading branch information...
1 parent b1a5bee commit 2f1b67f4bde2fdbdd4151787ca53b1809e102f84 @medihack committed Mar 28, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/will_paginate/view_helpers/link_renderer.rb
View
6 lib/will_paginate/view_helpers/link_renderer.rb
@@ -55,7 +55,11 @@ def page_number(page)
end
def gap
- '<span class="gap">&hellip;</span>'
+ if @options[:gap]
+ content_tag(:span, @options[:gap], :class => "gap")
+ else
+ content_tag(:span, "&hellip;", :class => "gap")
+ end
end
def previous_page

0 comments on commit 2f1b67f

Please sign in to comment.
Something went wrong with that request. Please try again.