Pagination improvements (#1445)
* Replace will_paginate with kaminari * Use #page instead of #paginate in controllers * Replace will_paginate.page_gap with pagination.truncate in i18n * Customize kaminari views to match prior styles * Set kaminari options to match prior behavior * Replace will_paginate with paginate in views
Showing
- Gemfile 1 addition, 1 deletionGemfile
- Gemfile.lock 13 additions, 2 deletionsGemfile.lock
- app/assets/stylesheets/accounts.scss 6 additions, 6 deletionsapp/assets/stylesheets/accounts.scss
- app/controllers/accounts_controller.rb 2 additions, 2 deletionsapp/controllers/accounts_controller.rb
- app/controllers/admin/accounts_controller.rb 1 addition, 1 deletionapp/controllers/admin/accounts_controller.rb
- app/controllers/admin/domain_blocks_controller.rb 1 addition, 1 deletionapp/controllers/admin/domain_blocks_controller.rb
- app/controllers/admin/pubsubhubbub_controller.rb 1 addition, 1 deletionapp/controllers/admin/pubsubhubbub_controller.rb
- app/controllers/admin/reports_controller.rb 1 addition, 1 deletionapp/controllers/admin/reports_controller.rb
- app/helpers/accounts_helper.rb 0 additions, 12 deletionsapp/helpers/accounts_helper.rb
- app/views/accounts/followers.html.haml 1 addition, 1 deletionapp/views/accounts/followers.html.haml
- app/views/accounts/following.html.haml 1 addition, 1 deletionapp/views/accounts/following.html.haml
- app/views/accounts/show.html.haml 1 addition, 1 deletionapp/views/accounts/show.html.haml
- app/views/admin/accounts/index.html.haml 1 addition, 1 deletionapp/views/admin/accounts/index.html.haml
- app/views/admin/domain_blocks/index.html.haml 1 addition, 1 deletionapp/views/admin/domain_blocks/index.html.haml
- app/views/admin/pubsubhubbub/index.html.haml 1 addition, 1 deletionapp/views/admin/pubsubhubbub/index.html.haml
- app/views/admin/reports/index.html.haml 1 addition, 1 deletionapp/views/admin/reports/index.html.haml
- app/views/kaminari/_next_page.html.haml 9 additions, 0 deletionsapp/views/kaminari/_next_page.html.haml
- app/views/kaminari/_paginator.html.haml 16 additions, 0 deletionsapp/views/kaminari/_paginator.html.haml
- app/views/kaminari/_prev_page.html.haml 9 additions, 0 deletionsapp/views/kaminari/_prev_page.html.haml
- app/views/tags/show.html.haml 1 addition, 1 deletionapp/views/tags/show.html.haml
... | ... | @@ -32,6 +32,7 @@ gem 'htmlentities' |
gem 'http' | ||
gem 'http_accept_language' | ||
gem 'httplog' | ||
gem 'kaminari' | ||
gem 'link_header' | ||
gem 'nokogiri' | ||
gem 'oj' | ||
... | ... | @@ -52,7 +53,6 @@ gem 'simple_form' |
gem 'statsd-instrument' | ||
gem 'twitter-text' | ||
gem 'tzinfo-data' | ||
gem 'will_paginate' | ||
gem 'react-rails' | ||
gem 'browserify-rails' | ||
... | ... |
app/helpers/accounts_helper.rb
deleted
100644 → 0
app/views/kaminari/_next_page.html.haml
0 → 100644
app/views/kaminari/_paginator.html.haml
0 → 100644
app/views/kaminari/_prev_page.html.haml
0 → 100644
Please register or sign in to comment