From 91bf588bcc31c5acfbb1f47ca380c6aada77dc47 Mon Sep 17 00:00:00 2001 From: summerscope Date: Tue, 10 Mar 2015 12:03:21 +1100 Subject: [PATCH] Order details page add in mini thumbnail for product image --- app/views/spree/shared/_order_details.html.haml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/spree/shared/_order_details.html.haml b/app/views/spree/shared/_order_details.html.haml index d0175c830c..c6a8090bf1 100644 --- a/app/views/spree/shared/_order_details.html.haml +++ b/app/views/spree/shared/_order_details.html.haml @@ -92,9 +92,12 @@ %tr{"data-hook" => "order_details_line_item_row"} %td(data-hook = "order_item_description") - %div.item-thumb-image - placeholder - + %div.item-thumb-image{"data-hook" => "order_item_image"} + - if item.variant.images.length == 0 + = link_to mini_image(item.variant.product), item.variant.product + - else + = link_to image_tag(item.variant.images.first.attachment.url(:mini)), item.variant.product + - if item.variant.product.name == item.variant.name_to_display %h5