Fixed bug in wiki "all pages" view.

This commit is contained in:
Benjamin Meichsner 2010-02-10 00:13:51 +01:00
parent e93dd9e046
commit b5df80b7dd

View file

@ -4,6 +4,7 @@
%th Titel %th Titel
%th Zuletzt aktualisiert %th Zuletzt aktualisiert
- homepage = Page.find_by_permalink('Home') - homepage = Page.find_by_permalink('Home')
- unless homepage.nil?
= render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1} = render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1}
- for page in @top_pages - for page in @top_pages
- if page.id != homepage.id - if page.id != homepage.id