From: Jean-Philippe Lang Date: Sat, 12 Mar 2011 18:27:02 +0000 (+0000) Subject: Adds an option to #render_page_hierarchy to add timestamp titles. X-Git-Tag: 1.2.0~744 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14238907354a6d4c0960556f2f48811119dc11c9;p=redmine.git 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 03f40e2bf..44cb25ab8 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 7e7155fda..5f962468a 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' %>