From b6605e35501a8cb9a6dcce61792b6946f9cbf719 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 26 Oct 2019 12:54:22 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelper#progress_bar git-svn-id: http://svn.redmine.org/redmine/trunk@18870 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b107fe6f4..29178c442 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1439,8 +1439,10 @@ module ApplicationHelper titles = options[:titles].to_a titles[0] = "#{pcts[0]}%" if titles[0].blank? legend = options[:legend] || '' - content_tag('table', - content_tag('tr', + content_tag( + 'table', + content_tag( + 'tr', (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed', :title => titles[0]) : ''.html_safe) + (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done', :title => titles[1]) : ''.html_safe) + (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo', :title => titles[2]) : ''.html_safe) -- 2.39.5