Module: Kaminari::Bootstrap3000::ActionViewExtension
- Defined in:
- lib/kaminari/bootstrap3000/helpers/action_view_extension.rb
Overview
Helpers
Instance Method Summary collapse
- #clearfix ⇒ Object
- #paginate3000(scope, options = {}, &block) ⇒ Object
- #paginate3000stats(scope, options = {}, &block) ⇒ Object
Instance Method Details
#clearfix ⇒ Object
30 31 32 |
# File 'lib/kaminari/bootstrap3000/helpers/action_view_extension.rb', line 30 def clearfix() raw %Q(<div class="clearfix"></div>) end |
#paginate3000(scope, options = {}, &block) ⇒ Object
34 35 36 37 38 |
# File 'lib/kaminari/bootstrap3000/helpers/action_view_extension.rb', line 34 def paginate3000(scope, = {}, &block) paginate3000stats(scope)+ paginate(scope,.reverse_merge(:theme => '3000'),&block)+ clearfix() end |
#paginate3000stats(scope, options = {}, &block) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/kaminari/bootstrap3000/helpers/action_view_extension.rb', line 21 def paginate3000stats(scope, = {}, &block) raw %Q(<div class="paginator_totals panel panel-default"> <div class="panel-body text-right"> <div class="items">#{scope.total_count} #{Russian.p(scope.total_count,"запись","записи","записей")}</div> <div class="pages">#{scope.total_pages} #{Russian.p(scope.total_pages,"страница","страницы","страниц")}</div> </div> </div>) end |