mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
shorten long line of WikiHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20136 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user