Format will_paginate html to match Twitter Bootstrap styling
The real hard work done on the renderer initializer was written by Isaac Bowen.
Add to your Gemfile:
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:
To use Bootstrap 4 version:
You can easily change the pagination components' appearance by passing the correct Bootstrap classes as options:
Sizing(Bootstrap 3 & 4): Add
.pagination-smfor additional sizes.
WillPaginate::ActionView::Bootstrap4LinkRenderer, class: 'pagination-lg') %>
Alignment (Bootstrap 4 only): Change the alignment of pagination components using Boostrap 4 Flexbox utilities
WillPaginate::ActionView::Bootstrap4LinkRenderer, class: 'justify-content-center') %>