[#2280] Added a td for the group by issue format.

This commit is contained in:
Eric Davis
2009-04-22 10:17:07 -07:00
parent 27ab69002c
commit c62722041d
2 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ class OverheadTimesheetHook < Redmine::Hook::ViewListener
return content_tag(:th, l(:overhead_field_billable)) return content_tag(:th, l(:overhead_field_billable))
end end
def plugin_timesheet_views_timesheet_time_entry_sum(context={})
return content_tag(:td, '')
end
def plugin_timesheet_views_timesheet_time_entry(context={}) def plugin_timesheet_views_timesheet_time_entry(context={})
time_entry = context[:time_entry] time_entry = context[:time_entry]
if time_entry && time_entry.billable? if time_entry && time_entry.billable?

View File

@@ -6,6 +6,12 @@ describe OverheadTimesheetHook, "#plugin_timesheet_views_timesheet_group_header"
end end
end end
describe OverheadTimesheetHook, "#plugin_timesheet_views_timesheet_time_entry_sum" do
it 'should add an empty column to the table' do
OverheadTimesheetHook.instance.plugin_timesheet_views_timesheet_time_entry_sum.should eql('<td></td>')
end
end
describe OverheadTimesheetHook, "#plugin_timesheet_views_timesheet_time_entry" do describe OverheadTimesheetHook, "#plugin_timesheet_views_timesheet_time_entry" do
before(:each) do before(:each) do
end end