Make the site_map the default view when showing all wiki pages
This commit is contained in:
parent
91e8eb4950
commit
954795138d
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ class PagesController < ApplicationController
|
||||||
|
|
||||||
def all
|
def all
|
||||||
@pages = Page.non_redirected
|
@pages = Page.non_redirected
|
||||||
@partial = params[:view] || 'title_list'
|
@partial = params[:view] || 'site_map'
|
||||||
|
|
||||||
if params[:name]
|
if params[:name]
|
||||||
@pages = @pages.where("title LIKE ?", "%#{params[:name]}%").limit(20)
|
@pages = @pages.where("title LIKE ?", "%#{params[:name]}%").limit(20)
|
||||||
|
|
Loading…
Reference in a new issue