Skip to content

Commit

Permalink
bugfix: The active page's widget should not be clickable, and should …
Browse files Browse the repository at this point in the history
…show the current page

incremented version number
  • Loading branch information
Andrew Ash committed Mar 22, 2012
1 parent c98c0f6 commit 9fd265c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/will_paginate/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module WillPaginate #:nodoc:
module VERSION #:nodoc:
MAJOR = 3
MINOR = 0
TINY = 4
TINY = 5

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
4 changes: 2 additions & 2 deletions lib/will_paginate/view_helpers/link_renderer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fd265c

Please sign in to comment.