@@ -87,16 +87,14 module QueriesHelper | |||
|
87 | 87 | format_time(value) |
|
88 | 88 | when 'Date' |
|
89 | 89 | format_date(value) |
|
90 |
when 'Fixnum' |
|
|
90 | when 'Fixnum' | |
|
91 | 91 | if column.name == :done_ratio |
|
92 | 92 | progress_bar(value, :width => '80px') |
|
93 | elsif column.name == :spent_hours | |
|
94 | sprintf "%.2f", value | |
|
95 | elsif column.name == :hours | |
|
96 | html_hours("%.2f" % value) | |
|
97 | 93 | else |
|
98 |
|
|
|
94 | value.to_s | |
|
99 | 95 | end |
|
96 | when 'Float' | |
|
97 | sprintf "%.2f", value | |
|
100 | 98 | when 'User' |
|
101 | 99 | link_to_user value |
|
102 | 100 | when 'Project' |
General Comments 0
You need to be logged in to leave comments.
Login now