diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-26 11:46:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-07-26 11:46:24 +0000 |
commit | 60d066f943c68a348fee3a8350dc5ba88878b69c (patch) | |
tree | 00d123b7b25e7306688842a7fed0733412118f41 /app/controllers/wiki_controller.rb | |
parent | b68fd4c04bed4d8c9f7d0ad9d65125c36635c819 (diff) | |
download | redmine-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.rb | 1 |
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' |