%tr#photo.photo{:id => photo.id, :"data-id" => photo.id}

  %td{:style => "vertical-align:middle;width:250px;"}
    =image_tag(photo.image.large.medium.small.thumb.url)
  %td
    =photo.title
  %td{:style => "width:300px;"}
    -photo.tags.order(:name).each do |tag|
      .tag_label=tag.name
  
  %td
    =link_to i(:pencil), edit_admin_photo_path(photo), :remote => true
    =link_to i(:trash), [:admin, photo], :remote => true, :method => :delete, :confirm => "Voulez-vous vraiment supprimer cette image ?"
  
    =link_to i(:"level-down"), admin_photo_path(:id => photo.id, :format => "js"), :class => "set_tag"
  
  

  
  
  