Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bugfix: The active page's widget should not be clickable, and should …

…show the current page

incremented version number
  • Loading branch information...
commit 9fd265cabdacab24d92da3274d19143b967e9439 1 parent c98c0f6
Andrew Ash authored
View
2  lib/will_paginate/version.rb
@@ -2,7 +2,7 @@ module WillPaginate #:nodoc:
module VERSION #:nodoc:
MAJOR = 3
MINOR = 0
- TINY = 4
+ TINY = 5
STRING = [MAJOR, MINOR, TINY].join('.')
end
View
4 lib/will_paginate/view_helpers/link_renderer.rb
@@ -46,11 +46,11 @@ def page_number(page)
a_html = link(page, page, :rel => rel_value(page))
@options[:twitter_bootstrap] ? tag( :li, a_html ) : a_html
else
- # Twitter-Bootstrap expects: <li class="active"><a href="#{rel_value(page)}">1</a></li>
+ # Twitter-Bootstrap expects: <li class="active"><a>1</a></li>
unless @options[:twitter_bootstrap]
tag(:em, page, :class => 'current')
else
- a_html = link(:a, page)
+ a_html = tag(:a, page)
tag(:li, a_html, :class => 'active' )
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.