From c07d5aab86114c5907db537e23a718f1465896e5 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 11 Oct 2020 12:56:52 +0000 Subject: [PATCH] shorten long line of WikiHelper git-svn-id: http://svn.redmine.org/redmine/trunk@20136 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/wiki_helper.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb index 6690b04fc..04a9253c3 100644 --- a/app/helpers/wiki_helper.rb +++ b/app/helpers/wiki_helper.rb @@ -47,9 +47,16 @@ module WikiHelper end def wiki_page_breadcrumb(page) - breadcrumb(page.ancestors.reverse.collect {|parent| - link_to(h(parent.pretty_title), {:controller => 'wiki', :action => 'show', :id => parent.title, :project_id => parent.project, :version => nil}) - }) + breadcrumb( + page.ancestors.reverse.collect do |parent| + link_to( + h(parent.pretty_title), + {:controller => 'wiki', :action => 'show', + :id => parent.title, :project_id => parent.project, + :version => nil} + ) + end + ) end # Returns the path for the Cancel link when editing a wiki page -- 2.39.5