# <a class="zoomThumbActive" href="javascript:void(0);" rel="{gallery: 'gal1', smallimage: './imgProd/SMALLIMAGE1.jpg',largeimage: './imgProd/LARGEIMAGE1.jpg'}">
#   <img src="imgProd/thumbs/THUMBIMG1.jpg">
# </a>
Deface::Override.new(:virtual_path => "spree/products/_thumbnails",
                      :name => 'replace-thumbnail-link-with-joom-link',
                      :replace => "erb[loud]:contains('link_to')") do
                        "<a href=\"<%= @product.images.first.attachment.url(:product) %>\"  rel=\"{gallery: 'product-gallery', smallimage: '<%= i.attachment.url(:product) %>', largeimage: '<%= i.attachment.url(:original) %>'}\" class=\"<%= (i.id == @product.images.first.id) ? 'zoomThumbActive' : '' %> \" > <%= image_tag(i.attachment.url(:mini)) %></a>"
end
