Skip to content

kristianmandrup/twitter_bootstrap-kaminari-views

Repository files navigation

Kaminari ERB and HAML views for Twitter Bootstrap

twitter bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites, including styles for pagination.

If you're using kaminari as your pagination library, the markup in its default views won't match the selectors used by bootstrap. This repository contains modified copies of kaminari's views that you can drop in to your ruby application to work with bootstrap.

Installation

in Gemfile

gem 'twitter_bootstrap-kaminari-views'

then bundle it!

Adds optional data option to paginate, that will be passed to all page-links.

= paginate @users, remote: true, data: {replace_element: '#admin_main'}

Credits

Current HAML version taken from this [repo](from https://github.com/hampei/twitter-bootstrap-kaminari-haml)

About

Kaminari views made for integration with Twitter Bootstrap

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages