From d731e9067d08a7e28f39c49e9dfc34ddcff34fbb Mon Sep 17 00:00:00 2001 From: rkh Date: Thu, 29 Apr 2010 16:06:13 +0000 Subject: [PATCH] remove cost_reports_helper.rb git-svn-id: https://dev.finn.de/svn/cockpit/trunk@960 7926756e-e54e-46e6-9721-ed318f58905e --- app/helpers/cost_reports_helper.rb | 34 ------------------------------ 1 file changed, 34 deletions(-) delete mode 100644 app/helpers/cost_reports_helper.rb diff --git a/app/helpers/cost_reports_helper.rb b/app/helpers/cost_reports_helper.rb deleted file mode 100644 index e4db1c66cc..0000000000 --- a/app/helpers/cost_reports_helper.rb +++ /dev/null @@ -1,34 +0,0 @@ -module CostReportsHelper - include QueriesHelper - - def operators_for_select(type_name) - CostQuery.filter_types[type_name][:operators].collect {|o| [l(CostQuery.operators[o][:label]), o]} - end - - def scope_icon_class(filter) - case filter.scope - when :issues - "wide-icon single-wide-icon icon-ticket" - when :costs - applies = @query.available_filters[filter.scope][filter.column_name][:applies] - return "wide-icon" if applies.nil? || applies.empty? - if applies.length > 1 - "wide-icon icon-money-time" - else - case applies[0] - when :time_entries - "wide-icon single-wide-icon icon-time" - when :cost_entries - "wide-icon single-wide-icon icon-money" - end - end - end - end - - def js_reorder_links(name, function) - link_to_function(image_tag('2uparrow.png', :alt => l(:label_sort_highest)), "#{function}('#{escape_javascript(name)}', 'highest')", :title => l(:label_sort_highest)) + - link_to_function(image_tag('1uparrow.png', :alt => l(:label_sort_higher)), "#{function}('#{escape_javascript(name)}', 'higher')", :title => l(:label_sort_higher)) + - link_to_function(image_tag('1downarrow.png', :alt => l(:label_sort_lower)), "#{function}('#{escape_javascript(name)}', 'lower')", :title => l(:label_sort_lower)) + - link_to_function(image_tag('2downarrow.png', :alt => l(:label_sort_lowest)), "#{function}('#{escape_javascript(name)}', 'lowest')", :title => l(:label_sort_lowest)) - end -end