Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

edwin7/will_paginate-bootstrap4

 
 

Repository files navigation

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

About

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

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.md
MIT
MIT-LICENSE

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%