Fixed wiki site-map, when there is no homepage.
This commit is contained in:
parent
707f989768
commit
3a9ec5a3dd
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue