pmr_app/app/views/admin/realisation_images/_realisation_image.html.haml
Nicolas Bally fea44b6c50 manys
2016-02-16 10:32:04 +01:00

9 lines
647 B
Plaintext

-if realisation_image.image_file
.realisation_image.image_square#realisation_image{:id => realisation_image.id, :data => { :title => realisation_image.title , :description => realisation_image.description, :id => realisation_image.id} }
.img{:style => "background-image : url('#{realisation_image.image_file.file.large.medium.small.thumb.url}');"}
.actions
=link_to i(:"trash-o"), [:admin, realisation_image], :data => {:confirm => 'Voulez-vous vraiment supprimer cette image ?'}, :method => :delete, :remote => true
=#link_to i(:pencil), edit_admin_realisation_image_path(realisation_image), :remote => true