Fixed wiki module.

This commit is contained in:
benni 2011-05-18 15:25:05 +02:00
parent d5552059ce
commit 772cf87c92
12 changed files with 25 additions and 43 deletions

View file

@ -96,21 +96,6 @@ class PagesController < ApplicationController
end
def all
@recent_pages = Page.non_redirected.all :order => 'updated_at DESC'
@pages = Page.non_redirected.all :order => 'title'
@top_pages = Page.no_parent.non_redirected.all :order => 'created_at'
view = params[:view]
params[:view] = nil
case view
when 'recentChanges'
render :partial => 'recent_changes' and return
when 'siteMap'
render :partial => 'site_map' and return
when 'titleList'
render :partial => 'title_list' and return
end
end
def version