Merge branch 'wiki'
Conflicts: app/helpers/pages_helper.rb public/stylesheets/main.css public/stylesheets/print.css
This commit is contained in:
commit
529956ea5a
15 changed files with 381 additions and 180 deletions
|
|
@ -60,6 +60,8 @@ class PagesController < ApplicationController
|
|||
render :action => 'edit'
|
||||
else
|
||||
if @page.save
|
||||
@page.parent_id = parent_id if (!params[:parent_id].blank? \
|
||||
and params[:parent_id] != @page_id)
|
||||
flash[:notice] = 'Seite wurde aktualisiert.'
|
||||
redirect_to wiki_page_path(@page.permalink)
|
||||
else
|
||||
|
|
@ -83,7 +85,7 @@ class PagesController < ApplicationController
|
|||
end
|
||||
|
||||
def all
|
||||
@pages = Page.all :order => 'created_at', :conditions => {:redirect => nil}
|
||||
@pages = Page.all :order => 'updated_at DESC', :conditions => {:redirect => nil}
|
||||
end
|
||||
|
||||
def version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue