No release in over a year
Hooks into will_paginate to format the html to match Twitter Bootstrap 5 styling.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.0, >= 3.0.0
 Project Readme

ex

Rails Engine that extends will_paginate stylings to match the pagination styling conventions in Twitter's Bootstrap toolkit.

Installation

Add to your Gemfile:

gem 'will_paginate-bootstrap-style'

Usage

Just like you would in the regular will_paginate. If you've got a need to use the default will_paginate stylings, pass an option like so:

<%= will_paginate @collection, renderer: WillPaginate::ActionView::BootstrapLinkRenderer %>

The following options are available (in addition to the options available in will_paginate):

:list_classes = ['pagination']    # Array of classes
:aria_label = 'Page Navigation'   # The aria label to use in the Nav tag
:previous_label = '&laquo;'       # Previous page label
:next_label = '&raquo;'           # Next page label

For example, to place the navigation section to the far right of the page, use this in your view:

<%= will_paginate @clients, list_classes: %w(pagination justify-content-end) %>