summaryrefslogtreecommitdiffstats
path: root/app/controllers/wiki_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-26 11:46:24 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-26 11:46:24 +0000
commit60d066f943c68a348fee3a8350dc5ba88878b69c (patch)
tree00d123b7b25e7306688842a7fed0733412118f41 /app/controllers/wiki_controller.rb
parentb68fd4c04bed4d8c9f7d0ad9d65125c36635c819 (diff)
downloadredmine-60d066f943c68a348fee3a8350dc5ba88878b69c.tar.gz
redmine-60d066f943c68a348fee3a8350dc5ba88878b69c.zip
Wiki page hierarchy (#528). Parent page can be assigned on Rename screen.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1698 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/wiki_controller.rb')
-rw-r--r--app/controllers/wiki_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 8655cfed7..2430205cf 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -147,6 +147,7 @@ class WikiController < ApplicationController
:joins => "LEFT JOIN #{WikiContent.table_name} ON #{WikiContent.table_name}.page_id = #{WikiPage.table_name}.id",
:order => 'title'
@pages_by_date = @pages.group_by {|p| p.updated_on.to_date}
+ @pages_by_parent_id = @pages.group_by(&:parent_id)
# export wiki to a single html file
when 'export'
@pages = @wiki.pages.find :all, :order => 'title'