Fixed wiki site-map, when there is no homepage.

This commit is contained in:
Benjamin Meichsner 2013-03-17 17:57:35 +01:00
parent 707f989768
commit 3a9ec5a3dd

View file

@ -8,5 +8,5 @@
= render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1} = render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1}
%tbody %tbody
- for page in @pages - for page in @pages
- if page.id != homepage.id - if page.id != homepage.try(: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}