diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-26 12:54:22 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-26 12:54:22 +0000 |
commit | b6605e35501a8cb9a6dcce61792b6946f9cbf719 (patch) | |
tree | a3a40b3e273ff5687d965fd506b5b1bb76243e74 | |
parent | c82ce3e20caa1e3b6232169e6a83c99f4d202771 (diff) | |
download | redmine-b6605e35501a8cb9a6dcce61792b6946f9cbf719.tar.gz redmine-b6605e35501a8cb9a6dcce61792b6946f9cbf719.zip |
cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelper#progress_bar
git-svn-id: http://svn.redmine.org/redmine/trunk@18870 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 6 |
1 files 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) |