end
end
- def sortable(column, title = nil)
- title ||= column.titleize
- direction = column == sort_column && sort_direction == "asc" ? "desc" : "asc"
- if column == sort_column
- arrow = direction == "desc" ? ["25B2".hex].pack("U") : ["25BC".hex].pack("U")
- title += arrow
- end
- link_to title, params.merge(:sort => column, :direction => direction)
- end
-
def report_type(report_class)
case report_class
when "DiaryEntry"