-annonce = line_annonce

.annonce_line#annonce{:href => public_annonce_path(annonce), :id => annonce.id, :class => ("highlight " if annonce.highlight_expire? and annonce.highlight_expire >= Date.today).to_s+("big " if !@uniform and annonce.big_annonce_expire? and annonce.big_annonce_expire >= Date.today).to_s}
  -if annonce.default_photo and annonce.annonce_photos.visibles.where(:id => annonce.default_photo_id).first
    .default_image{:style => "background-image:url('#{(annonce.default_photo.file.medium.url)}')"}
  -else
    .default_image
    =#image_tag annonce.default_photo.file.large.medium.small.url, :class => "default_image"
  
  -if annonce.urgent_expire? and annonce.urgent_expire >= Date.today
    =image_tag "/urgent.png", :class => "urgent"
  .infos
    .price= number_to_currency(annonce.price, :unit => annonce.devise.icon) if annonce.price
    %h3
      =annonce.title
    =link_to "Voir l'annonce", public_annonce_path(annonce), :class => "btn btn-primary"
    -if !annonce.published and annonce.annonce_account = current_annonce_account
      =link_to "Publier maintenant", publish_public_annonce_path(annonce), :remote => true, :class => "btn btn-warning btn-lg", :onclick => "$(this).hide()"

    .specific
    
      -if annonce.city and !annonce.internet
        =annonce.city.codes_postaux
        =annonce.city.nom_commune
        ="-"
      -else
        Internet
        ="-"
      -if annonce.specific_annonce
        =render :partial => "public/#{annonce.specific_annonce_type.tableize}/line", :locals => {:annonce_specific => annonce.specific_annonce}
    


   
  .clear
  
  