Merged r11350 from trunk (#13126).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.2-stable@11365 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ecef96a6b9
commit
3a98a14250
|
@ -87,14 +87,14 @@ module QueriesHelper
|
||||||
format_time(value)
|
format_time(value)
|
||||||
when 'Date'
|
when 'Date'
|
||||||
format_date(value)
|
format_date(value)
|
||||||
when 'Fixnum', 'Float'
|
when 'Fixnum'
|
||||||
if column.name == :done_ratio
|
if column.name == :done_ratio
|
||||||
progress_bar(value, :width => '80px')
|
progress_bar(value, :width => '80px')
|
||||||
elsif column.name == :spent_hours
|
|
||||||
sprintf "%.2f", value
|
|
||||||
else
|
else
|
||||||
h(value.to_s)
|
value.to_s
|
||||||
end
|
end
|
||||||
|
when 'Float'
|
||||||
|
sprintf "%.2f", value
|
||||||
when 'User'
|
when 'User'
|
||||||
link_to_user value
|
link_to_user value
|
||||||
when 'Project'
|
when 'Project'
|
||||||
|
|
Loading…
Reference in New Issue