From 14238907354a6d4c0960556f2f48811119dc11c9 2011-03-12 18:27:02 From: Jean-Philippe Lang Date: 2011-03-12 18:27:02 Subject: [PATCH] Adds an option to #render_page_hierarchy to add timestamp titles. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5099 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 03f40e2..44cb25a 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" diff --git a/app/views/wiki/index.html.erb b/app/views/wiki/index.html.erb index 7e7155f..5f96246 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' %>