Build a span per customer so that they flow and use two columns in the overview

This commit is contained in:
Paul van Tilburg 2014-11-01 17:47:52 +01:00
parent 35462ed0dd
commit 49eb58ff51
1 changed files with 2 additions and 2 deletions

View File

@ -1591,8 +1591,8 @@ module StopTime::Views
end
else
div.row do
div.span6 do
@tasks.keys.sort_by { |c| c.name }.each do |customer|
@tasks.keys.sort_by { |c| c.name }.each do |customer|
div.span6 do
inv_klass = "text_info"
inv_klass = "text_warning" if customer.invoices.any? { |inv| inv.past_due? }
inv_klass = "text_error" if customer.invoices.any? { |inv| inv.way_past_due? }