[#2280] Added documentation.

This commit is contained in:
Eric Davis
2009-04-22 10:30:58 -07:00
parent 85af15b7c3
commit ebd06b893b

View File

@@ -1,14 +1,16 @@
class OverheadTimesheetHook < Redmine::Hook::ViewListener class OverheadTimesheetHook < Redmine::Hook::ViewListener
# Adds a table header "Billable" to the report results
def plugin_timesheet_views_timesheet_group_header(context={}) def plugin_timesheet_views_timesheet_group_header(context={})
return content_tag(:th, l(:overhead_field_billable)) return content_tag(:th, l(:overhead_field_billable))
end end
# Adds a blank table cell to the issue grouping option
def plugin_timesheet_views_timesheet_time_entry_sum(context={}) def plugin_timesheet_views_timesheet_time_entry_sum(context={})
return content_tag(:td, '') return content_tag(:td, '')
end end
# Adds the gree checkbox image if the TimeEntry is billable
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?