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
8
app/views/pages/_page_list_item.html.haml
Normal file
8
app/views/pages/_page_list_item.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
-ident = 20 * level
|
||||
%tr
|
||||
%td{:style => "padding-left: #{ident}px"}
|
||||
= link_to page.title, wiki_page_path(page.permalink)
|
||||
%td= "#{User.find(page.updated_by).nick} (#{format_datetime_timespec(page.updated_at, '%a, %d. %B %Y %H:%M:%S')})"
|
||||
-if siteMap == 1
|
||||
-for child in page.children.all
|
||||
= render :partial => 'page_list_item', :locals => {:page => child, :level => level+1, :siteMap => 1}
|
||||
Loading…
Add table
Add a link
Reference in a new issue