This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/will_paginate.rb | |
# tested with will_paginate 2.3 stable | |
module WillPaginate | |
class BootstrapLinkRenderer < LinkRenderer | |
def to_html | |
links = @options[:page_links] ? windowed_links : [] | |
# previous/next buttons | |
links.unshift page_link_or_span(@collection.previous_page, 'disabled prev', "← Previous") | |
links.push page_link_or_span(@collection.next_page, 'disabled next', "Next →") |