[#2280] Added a td for the group by issue format.
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user