[#2271] Show overhead time on the issue details page.

This commit is contained in:
Eric Davis
2009-08-05 15:42:08 -07:00
parent 5d5a8eb82c
commit b6e7111996
2 changed files with 16 additions and 2 deletions
+6 -1
View File
@@ -6,8 +6,13 @@ class OverheadIssueHook < Redmine::Hook::ViewListener
:class => 'billable-hours')
billable_spent = content_tag(:td, l_hours(context[:issue].billable_time_spent))
overhead_label = content_tag(:td,
content_tag(:strong, l(:overhead_overhead_time)+":"),
:class => 'overhead-hours')
overhead_spent = content_tag(:td, l_hours(context[:issue].overhead_time_spent))
return content_tag(:tr,
billable_label + billable_spent,
billable_label + billable_spent + overhead_label + overhead_spent,
:class => 'overhead-plugin')
else
return ''