/will_paginate-bootstrap4

Hooks into will_paginate to format the html to match Twitter Bootstrap 4 styling

Primary LanguageRubyMIT LicenseMIT

Will Paginate link renderer styles for Twitter Bootstrap 4

ex

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

Installation

Add to your Gemfile:

gem 'will_paginate-bootstrap4'

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 %>

CSS:
.pagination {
    margin-top: 10px;
    align-items: center;
    justify-content: center;
}

Copyright (c) 2016-2017 Ivan Palamarchuk released under the MIT license