summaryrefslogtreecommitdiffstats
path: root/app/helpers/wiki_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-11 12:56:52 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-11 12:56:52 +0000
commitc07d5aab86114c5907db537e23a718f1465896e5 (patch)
tree96a649cf996b1f7a2217f7883d521e75fd6ee4b3 /app/helpers/wiki_helper.rb
parent9e08ea93ef87d69aef580a45565c03e2e7953c8a (diff)
downloadredmine-c07d5aab86114c5907db537e23a718f1465896e5.tar.gz
redmine-c07d5aab86114c5907db537e23a718f1465896e5.zip
shorten long line of WikiHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20136 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/wiki_helper.rb')
-rw-r--r--app/helpers/wiki_helper.rb13
1 files 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