-
- Downloads
Use Prev/Next pagination for exploring projects
This changes the pagination of the "Explore" pages so they use a simpler pagination system that only shows "Prev" and "Next" buttons. This removes the need for getting the total number of rows to display, a process that can easily take up to 2 seconds when browsing through a large list of projects. Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/27390
Showing
- Gemfile 1 addition, 1 deletionGemfile
- Gemfile.lock 13 additions, 4 deletionsGemfile.lock
- app/controllers/explore/projects_controller.rb 7 additions, 4 deletionsapp/controllers/explore/projects_controller.rb
- app/helpers/pagination_helper.rb 21 additions, 0 deletionsapp/helpers/pagination_helper.rb
- app/views/kaminari/gitlab/_without_count.html.haml 8 additions, 0 deletionsapp/views/kaminari/gitlab/_without_count.html.haml
- app/views/shared/projects/_list.html.haml 1 addition, 1 deletionapp/views/shared/projects/_list.html.haml
- changelogs/unreleased/pagination-projects-explore.yml 4 additions, 0 deletionschangelogs/unreleased/pagination-projects-explore.yml
- spec/helpers/pagination_helper_spec.rb 23 additions, 0 deletionsspec/helpers/pagination_helper_spec.rb
Loading
| Loading
| @@ -84,7 +84,7 @@ gem 'rack-cors', '~> 0.4.0', require: 'rack/cors' |
gem 'hashie-forbidden_attributes' | ||
# Pagination | ||
gem 'kaminari', '~> 0.17.0' | ||
gem 'kaminari', '~> 1.0' | ||
# HAML | ||
gem 'hamlit', '~> 2.6.1' | ||
Loading
| Loading
|
app/helpers/pagination_helper.rb
0 → 100644
spec/helpers/pagination_helper_spec.rb
0 → 100644
Please register or sign in to comment