Format all floats with 2 decimals in the issue list (#13126).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11350 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-02-11 18:07:45 +00:00
parent 514f2d6c0f
commit cd04a041fe
1 changed files with 4 additions and 6 deletions

View File

@ -87,16 +87,14 @@ module QueriesHelper
format_time(value)
when 'Date'
format_date(value)
when 'Fixnum', 'Float'
when 'Fixnum'
if column.name == :done_ratio
progress_bar(value, :width => '80px')
elsif column.name == :spent_hours
sprintf "%.2f", value
elsif column.name == :hours
html_hours("%.2f" % value)
else
h(value.to_s)
value.to_s
end
when 'Float'
sprintf "%.2f", value
when 'User'
link_to_user value
when 'Project'