diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-20 11:51:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-08-20 11:51:49 +0000 |
commit | ada823a923dee40c34ac961f2880e02da85d68a5 (patch) | |
tree | 9cc207455fafc82af664633256012f0c2bf59c64 /app | |
parent | 95162cd145f403aae30226e9e0162fff50113f73 (diff) | |
download | redmine-ada823a923dee40c34ac961f2880e02da85d68a5.tar.gz redmine-ada823a923dee40c34ac961f2880e02da85d68a5.zip |
Rails3: use String#html_safe for progress_bar() at ApplicationHelper.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6490 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/application_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0129b007a..939bd3569 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -807,11 +807,11 @@ module ApplicationHelper legend = options[:legend] || '' content_tag('table', content_tag('tr', - (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : '') + - (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : '') + - (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : '') - ), :class => 'progress', :style => "width: #{width};") + - content_tag('p', legend, :class => 'pourcent') + (pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed') : ''.html_safe) + + (pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done') : ''.html_safe) + + (pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo') : ''.html_safe) + ), :class => 'progress', :style => "width: #{width};").html_safe + + content_tag('p', legend, :class => 'pourcent').html_safe end def checked_image(checked=true) |