bd2c961e23
Sorting is completely broken. Also align the sorting UI with other pages.
12 lines
480 B
Text
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}
|