foodsoft/plugins/wiki/app/views/pages/_site_map.html.haml

13 lines
480 B
Text
Raw Permalink Normal View History

2012-10-09 02:31:10 +02:00
%table.table.table-striped
%thead
%tr
2013-04-12 00:58:38 +02:00
%th= t 'pages.title'
%th= t 'pages.last_updated'
- homepage = Page.find_by_permalink('Home')
2010-02-10 00:13:51 +01:00
- unless homepage.nil?
= render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1}
2012-10-09 02:31:10 +02:00
%tbody
- for page in @pages
- if page.id != homepage.try(:id) && !page.parent_id?
= render :partial => 'page_list_item', :locals => {:page => page, :level => 0, :siteMap => 1}