Mercurial > hg > soundsoftware-site
comparison app/helpers/queries_helper.rb @ 1294:3e4c3460b6ca redmine-2.2
Update to Redmine SVN revision 11972 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:01:12 +0100 |
parents | 433d4f72a19b |
children | 622f24f53b42 261b3d9a4903 |
comparison
equal
deleted
inserted
replaced
1115:433d4f72a19b | 1294:3e4c3460b6ca |
---|---|
85 end | 85 end |
86 when 'Time' | 86 when 'Time' |
87 format_time(value) | 87 format_time(value) |
88 when 'Date' | 88 when 'Date' |
89 format_date(value) | 89 format_date(value) |
90 when 'Fixnum', 'Float' | 90 when 'Fixnum' |
91 if column.name == :done_ratio | 91 if column.name == :done_ratio |
92 progress_bar(value, :width => '80px') | 92 progress_bar(value, :width => '80px') |
93 elsif column.name == :spent_hours | |
94 sprintf "%.2f", value | |
95 else | 93 else |
96 h(value.to_s) | 94 value.to_s |
97 end | 95 end |
96 when 'Float' | |
97 sprintf "%.2f", value | |
98 when 'User' | 98 when 'User' |
99 link_to_user value | 99 link_to_user value |
100 when 'Project' | 100 when 'Project' |
101 link_to_project value | 101 link_to_project value |
102 when 'Version' | 102 when 'Version' |