No commit activity in last 3 years
No release in over 3 years
Bootstrap-ify pagination with Kaminari - Compatible with Bootstrap 2.x, 3.x
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.13
>= 3.1
 Project Readme

Bootstrap Kaminari Views¶ ↑

<img src=“https://badge.fury.io/rb/bootstrap-kaminari-views.svg” alt=“Gem Version” />

Basic Gem for quick default inclusion of Kaminari theme compatible with Twitter Bootstrap 2.0 and Twitter Bootstrap 3.0

Usage¶ ↑

Ensure your gemfile contains

gem 'kaminari'
gem 'bootstrap-kaminari-views'

Render Pagination with a theme

= paginate @posts, :theme => 'twitter-bootstrap'

= paginate @posts, :theme => 'twitter-bootstrap-3'

Render with specific pagination classes

= paginate @posts, :theme => 'twitter-bootstrap-3',
                   :pagination_class => "pagination-sm"

Render with specific pagination classes

= paginate @posts, :theme => 'twitter-bootstrap',
                   :pagination_class => "pagination-small pagination-centered"

Default Options¶ ↑

If you want to use one or more options as the default across your app, you can override the helper method in your application_helper.rb file:

module ApplicationHelper

  def paginate objects, options = {}
    options.reverse_merge!( theme: 'twitter-bootstrap' )

    super( objects, options )
  end

end

Credits¶ ↑

Kaminari - For making an awesome gem

twitter-bootstrap-kaminari-views - Non Gemified Implementation