Fix whitespace in (Rails) helpers

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/1389/head
Alex Coles 11 years ago
parent 1900e9b55d
commit f517b3a422
  1. 2
      app/helpers/application_helper.rb
  2. 2
      app/helpers/query_menu_items_helper.rb
  3. 1
      app/helpers/sort_helper.rb
  4. 6
      app/helpers/timelog_helper.rb

@ -227,7 +227,7 @@ module ApplicationHelper
def format_version_name(version)
if version.project == @project
h(version)
h(version)
else
h("#{version.project} - #{version}")
end

@ -31,4 +31,4 @@ module QueryMenuItemsHelper
def update_query_menu_item_path(project, query_menu_item)
query_menu_item.persisted? ? query_menu_item_path(project, query_menu_item.query, query_menu_item) : query_menu_items_path(project, query_menu_item.query)
end
end
end

@ -265,4 +265,3 @@ module SortHelper
content_tag('th', sort_link(column, caption, default_order, :lang => lang), options)
end
end

@ -67,10 +67,10 @@ module TimelogHelper
end
def select_hours(data, criteria, value)
if value.to_s.empty?
data.select {|row| row[criteria].blank? }
if value.to_s.empty?
data.select {|row| row[criteria].blank? }
else
data.select {|row| row[criteria].to_s == value.to_s}
data.select {|row| row[criteria].to_s == value.to_s}
end
end

Loading…
Cancel
Save