foodsoft/plugins/wiki/app/views/pages/_site_map.html.haml
Patrick Gansterer bd2c961e23 Improve sorting of wiki pages
Sorting is completely broken. Also align the sorting UI with other pages.
2016-03-06 18:32:46 +01:00

12 lines
480 B
Text

%table.table.table-striped
%thead
%tr
%th= t 'pages.title'
%th= t 'pages.last_updated'
- homepage = Page.find_by_permalink('Home')
- unless homepage.nil?
= render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1}
%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}