mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-30 04:31:14 +00:00
code layout clean up ApplicationHelper#progress_bar
git-svn-id: http://svn.redmine.org/redmine/trunk@18906 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2d0be791b6
commit
b4d8ea2bd6
@ -1457,9 +1457,24 @@ module ApplicationHelper
|
|||||||
'table',
|
'table',
|
||||||
content_tag(
|
content_tag(
|
||||||
'tr',
|
'tr',
|
||||||
(pcts[0] > 0 ? content_tag('td', '', :style => "width: #{pcts[0]}%;", :class => 'closed', :title => titles[0]) : ''.html_safe) +
|
(if pcts[0] > 0
|
||||||
(pcts[1] > 0 ? content_tag('td', '', :style => "width: #{pcts[1]}%;", :class => 'done', :title => titles[1]) : ''.html_safe) +
|
content_tag('td', '', :style => "width: #{pcts[0]}%;",
|
||||||
(pcts[2] > 0 ? content_tag('td', '', :style => "width: #{pcts[2]}%;", :class => 'todo', :title => titles[2]) : ''.html_safe)
|
:class => 'closed', :title => titles[0])
|
||||||
|
else
|
||||||
|
''.html_safe
|
||||||
|
end) +
|
||||||
|
(if pcts[1] > 0
|
||||||
|
content_tag('td', '', :style => "width: #{pcts[1]}%;",
|
||||||
|
:class => 'done', :title => titles[1])
|
||||||
|
else
|
||||||
|
''.html_safe
|
||||||
|
end) +
|
||||||
|
(if pcts[2] > 0
|
||||||
|
content_tag('td', '', :style => "width: #{pcts[2]}%;",
|
||||||
|
:class => 'todo', :title => titles[2])
|
||||||
|
else
|
||||||
|
''.html_safe
|
||||||
|
end)
|
||||||
), :class => "progress progress-#{pcts[0]}").html_safe +
|
), :class => "progress progress-#{pcts[0]}").html_safe +
|
||||||
content_tag('p', legend, :class => 'percent').html_safe
|
content_tag('p', legend, :class => 'percent').html_safe
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user