-css_class = "" -css_class "danger" if customer.lock %tr#customer_row{:id => customer.id, :class => css_class} %td =customer.organisation %td =customer.name =customer.firstname %td -if customer.phone? = i("phone") + " #{customer.phone}" %td =customer.city %td = "Oui" if customer.enabled = "Non" if !customer.enabled %td =link_to customer.email, "mailto:#{customer.email}" %td =number_to_currency customer.accepted_offers.joins(:offer).where(:state => "documents_completed").sum("offers.price").to_f %td=time_ago_in_words(customer.last_activity) if customer.last_activity %td.actions{:style => "width:150px;text-align:right;"} =link_to i(:eye), public_customer_path(customer) =link_to i(:envelope), mail_public_customer_path(customer)