Added site map and titel list to pages/all
* pages/all now consists of three alternativ views: recent changes, site map and title list
This commit is contained in:
parent
305a4ac895
commit
90f760858e
7 changed files with 58 additions and 10 deletions
10
app/views/pages/_site_map.html.haml
Normal file
10
app/views/pages/_site_map.html.haml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.column_content
|
||||
%table
|
||||
%tr
|
||||
%th Titel
|
||||
%th Zuletzt aktualisiert
|
||||
- homepage = Page.find_by_permalink('Home')
|
||||
= render :partial => 'page_list_item', :locals => {:page => homepage, :level => 0, :siteMap => 1}
|
||||
- for page in @top_pages
|
||||
- if page.id != homepage.id
|
||||
= render :partial => 'page_list_item', :locals => {:page => page, :level => 0, :siteMap => 1}
|
||||
Loading…
Add table
Add a link
Reference in a new issue