1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-09 09:01:31 +00:00

use the lambda method for multiline lambdas at ApplicationHelper

git-svn-id: http://svn.redmine.org/redmine/trunk@20498 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-26 14:46:21 +00:00
parent 99f567a7e3
commit e5bdb37624

View File

@ -511,7 +511,7 @@ module ApplicationHelper
end
jump = params[:jump].presence || current_menu_item
s = (+'').html_safe
build_project_link = ->(project, level = 0) do
build_project_link = lambda do |project, level = 0|
padding = level * 16
text = content_tag('span', project.name, :style => "padding-left:#{padding}px;")
s << link_to(text, project_path(project, :jump => jump),