summaryrefslogtreecommitdiffstats
path: root/app/helpers/queries_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/queries_helper.rb')
-rw-r--r--app/helpers/queries_helper.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb
index 57a45312e..ea551ecf0 100644
--- a/app/helpers/queries_helper.rb
+++ b/app/helpers/queries_helper.rb
@@ -149,7 +149,12 @@ module QueriesHelper
def total_tag(column, value)
label = content_tag('span', "#{column.caption}:")
- value = content_tag('span', format_object(value), :class => 'value')
+ value = if [:hours, :spent_hours, :total_spent_hours, :estimated_hours].include? column.name
+ format_hours(value)
+ else
+ format_object(value)
+ end
+ value = content_tag('span', value, :class => 'value')
content_tag('span', label + " " + value, :class => "total-for-#{column.name.to_s.dasherize}")
end
@@ -184,6 +189,8 @@ module QueriesHelper
content_tag('span',
value.to_s(issue) {|other| link_to_issue(other, :subject => false, :tracker => false)}.html_safe,
:class => value.css_classes_for(issue))
+ when :hours, :spent_hours, :total_spent_hours, :estimated_hours
+ format_hours(value)
else
format_object(value)
end