@@ -187,15 +187,15 module ApplicationHelper | |||
|
187 | 187 | end |
|
188 | 188 | end |
|
189 | 189 | |
|
190 | def render_page_hierarchy(pages, node=nil) | |
|
190 | def render_page_hierarchy(pages, node=nil, options={}) | |
|
191 | 191 | content = '' |
|
192 | 192 | if pages[node] |
|
193 | 193 | content << "<ul class=\"pages-hierarchy\">\n" |
|
194 | 194 | pages[node].each do |page| |
|
195 | 195 | content << "<li>" |
|
196 | 196 | content << link_to(h(page.pretty_title), {:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title}, |
|
197 | :title => (page.updated_on ? l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) : nil)) | |
|
198 | content << "\n" + render_page_hierarchy(pages, page.id) if pages[page.id] | |
|
197 | :title => (options[:timestamp] && page.updated_on ? l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) : nil)) | |
|
198 | content << "\n" + render_page_hierarchy(pages, page.id, options) if pages[page.id] | |
|
199 | 199 | content << "</li>\n" |
|
200 | 200 | end |
|
201 | 201 | content << "</ul>\n" |
General Comments 0
You need to be logged in to leave comments.
Login now