From aa07928f1fbbcf7cad3faafc67fc7c3d1d75eef5 Mon Sep 17 00:00:00 2001 From: Skud Date: Fri, 3 Jan 2014 22:56:31 +1100 Subject: [PATCH] Show crop thumbnails on search results page --- app/views/crops/search.html.haml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/crops/search.html.haml b/app/views/crops/search.html.haml index 297451dc4..369d57fdd 100644 --- a/app/views/crops/search.html.haml +++ b/app/views/crops/search.html.haml @@ -13,10 +13,14 @@ %div#exact_match %h2 Exact match - %p= link_to @exact_match.name, @exact_match + %ul.thumbnails + %li.span2.six-across + = render :partial => "thumbnail", :locals => { :crop => @exact_match } - if ! @partial_matches.empty? %div#partial_matches %h2 Partial matches - - @partial_matches.each do |c| - %p= link_to c.name, c + %ul.thumbnails + - @partial_matches.each do |c| + %li.span2.six-across + = render :partial => "thumbnail", :locals => { :crop => c }