diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 3c4f1258d5..5c8aaddba2 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -187,15 +187,15 @@ module ApplicationHelper
end
end
- def render_page_hierarchy(pages, node=nil)
+ def render_page_hierarchy(pages, node=nil, options={})
content = ''
if pages[node]
content << "
\n"
pages[node].each do |page|
content << "- "
content << link_to(h(page.pretty_title), {:controller => 'wiki', :action => 'show', :project_id => page.project, :id => page.title},
- :title => (page.updated_on ? l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) : nil))
- content << "\n" + render_page_hierarchy(pages, page.id) if pages[page.id]
+ :title => (options[:timestamp] && page.updated_on ? l(:label_updated_time, distance_of_time_in_words(Time.now, page.updated_on)) : nil))
+ content << "\n" + render_page_hierarchy(pages, page.id, options) if pages[page.id]
content << "
\n"
end
content << "
\n"
diff --git a/app/views/wiki/index.html.erb b/app/views/wiki/index.html.erb
index e85f83b91e..d42ee96626 100644
--- a/app/views/wiki/index.html.erb
+++ b/app/views/wiki/index.html.erb
@@ -8,7 +8,7 @@
<%= l(:label_no_data) %>
<% end %>
-<%= render_page_hierarchy(@pages_by_parent_id) %>
+<%= render_page_hierarchy(@pages_by_parent_id, nil, :timestamp => true) %>
<% content_for :sidebar do %>
<%= render :partial => 'sidebar' %>