Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-04-11 12:02:52 +0400
committerMarin Jankovski <marin@gitlab.com>2014-04-11 12:02:52 +0400
commit872482678be0eef25191e118b8300112735f0023 (patch)
tree69a35c8780186490da6908c304c20ed52cd6a7ce /app/controllers
parent415c0f4bbe12dbd78bf24d50e66e3092df07fa21 (diff)
Speed up loading and add pagination to wiki pages page.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/wikis_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/wikis_controller.rb b/app/controllers/projects/wikis_controller.rb
index 9444d5a6b77..bcd9e0d5219 100644
--- a/app/controllers/projects/wikis_controller.rb
+++ b/app/controllers/projects/wikis_controller.rb
@@ -7,7 +7,7 @@ class Projects::WikisController < Projects::ApplicationController
before_filter :load_project_wiki
def pages
- @wiki_pages = @project_wiki.pages
+ @wiki_pages = Kaminari.paginate_array(@project_wiki.pages).page(params[:page]).per(30)
end
def show