#annonce_photo.annonce_photo{:id => annonce_photo.id}
  =image_tag annonce_photo.file.medium.thumb.url+"?"+Time.now.to_s
  
  -if annonce_photo.annonce.default_photo_id == annonce_photo.id
    =link_to ic(:"star"), "#", :style => "color:#ffcc17;"
  -else
    =link_to ic(:"star-o"), public_annonce_path(:id => annonce_photo.annonce.id, :annonce => {:default_photo_id => annonce_photo.id}), :remote => true, :method => :patch, :style => "color:#dddddd;"
  
  =link_to ic(:"rotate-left"), rotate_public_annonce_photo_path(:id => annonce_photo.id, :direction => "right"), :remote => true
  =link_to ic(:"rotate-right"), rotate_public_annonce_photo_path(annonce_photo), :remote => true
  
  
  = link_to i(:"trash-o"), [:public, annonce_photo], :data => {:confirm => qit("annonce-photos-annonce", "'Voulez-vous vraiment supprimer cette photo ?'")}, :method => :delete, :remote => true