Kaminari views made for integration with Twitter Bootstrap
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
lib
.DS_Store
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
VERSION
twitter_bootstrap-kaminari-views.gemspec

README.md

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)