From ad4b81654a121381c29d639fb67ad773da333dde Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Fri, 3 May 2013 13:44:35 +0200 Subject: [PATCH] whitespace fixes --- app/helpers/cost_reports_helper.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/helpers/cost_reports_helper.rb b/app/helpers/cost_reports_helper.rb index d33623742b..910b9a6d02 100644 --- a/app/helpers/cost_reports_helper.rb +++ b/app/helpers/cost_reports_helper.rb @@ -4,7 +4,7 @@ module CostReportsHelper 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 @@ -24,18 +24,18 @@ module CostReportsHelper 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 - - + + def element_hidden_warning() # FIXME: Wanring has also to be generated if right is not granted in one of the subprojects only - unless User.current.allowed_to?(:view_cost_entries, @project, :for => nil) && + unless User.current.allowed_to?(:view_cost_entries, @project, :for => nil) && User.current.allowed_to?(:view_time_entries, @project, :for => nil) && User.current.allowed_to?(:view_cost_rates, @project, :for => nil) && User.current.allowed_to?(:view_hourly_rates, @project, :for => nil)