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,7 +4,8 @@
%th Titel %th Titel
%th Zuletzt aktualisiert %th Zuletzt aktualisiert
- homepage = Page.find_by_permalink('Home') - homepage = Page.find_by_permalink('Home')
= render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1} - unless homepage.nil?
= 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
= render :partial => 'page_list_item', :locals => {:page => page, :level => 0, :siteMap => 1} = render :partial => 'page_list_item', :locals => {:page => page, :level => 0, :siteMap => 1}