From: Toshi MARUYAMA Date: Sat, 26 Oct 2019 12:54:22 +0000 (+0000) Subject: cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelper#progress_bar X-Git-Tag: 4.1.0~233 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b6605e35501a8cb9a6dcce61792b6946f9cbf719;p=redmine.git cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelper#progress_bar git-svn-id: http://svn.redmine.org/redmine/trunk@18870 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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)