]> cat aescling's git repositories - mastodon.git/commit
Pagination improvements (#1445)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Mon, 10 Apr 2017 23:11:41 +0000 (19:11 -0400)
committerEugen <eugen@zeonfederated.com>
Mon, 10 Apr 2017 23:11:41 +0000 (01:11 +0200)
commit4ada50985a73ed5c859cdf5160500b04116ad0e4
tree6e51b5cf970bc4f945834e65bf8bd37b1ef8fb5f
parenta28378646393de998663981e6660eb79e7a6375f
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
36 files changed:
Gemfile
Gemfile.lock
app/assets/stylesheets/accounts.scss
app/controllers/accounts_controller.rb
app/controllers/admin/accounts_controller.rb
app/controllers/admin/domain_blocks_controller.rb
app/controllers/admin/pubsubhubbub_controller.rb
app/controllers/admin/reports_controller.rb
app/helpers/accounts_helper.rb [deleted file]
app/views/accounts/followers.html.haml
app/views/accounts/following.html.haml
app/views/accounts/show.html.haml
app/views/admin/accounts/index.html.haml
app/views/admin/domain_blocks/index.html.haml
app/views/admin/pubsubhubbub/index.html.haml
app/views/admin/reports/index.html.haml
app/views/kaminari/_next_page.html.haml [new file with mode: 0644]
app/views/kaminari/_paginator.html.haml [new file with mode: 0644]
app/views/kaminari/_prev_page.html.haml [new file with mode: 0644]
app/views/tags/show.html.haml
config/i18n-tasks.yml
config/initializers/kaminari_config.rb [new file with mode: 0644]
config/initializers/pagination.rb [new file with mode: 0644]
config/locales/de.yml
config/locales/en.yml
config/locales/eo.yml
config/locales/es.yml
config/locales/fi.yml
config/locales/fr.yml
config/locales/hu.yml
config/locales/no.yml
config/locales/pt.yml
config/locales/ru.yml
config/locales/uk.yml
config/locales/zh-CN.yml
spec/helpers/accounts_helper_spec.rb [deleted file]