From b6e7cd4479d8cd2866de14355ea97279241d2858 Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Thu, 15 Nov 2012 23:59:03 +0000 Subject: [PATCH] Fix weird linebreaks on crops index page. --- app/views/crops/index.html.haml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/crops/index.html.haml b/app/views/crops/index.html.haml index d22b93bd0..3665d3940 100644 --- a/app/views/crops/index.html.haml +++ b/app/views/crops/index.html.haml @@ -1,15 +1,21 @@ - content_for :title, "Crops" +- c = 0 %ul.thumbnails + .row - @crops.each do |crop| + - c += 1 %li.span2 - .thumbnail + .thumbnail(style='height: 200px') = image_tag('http://placehold.it/150x150', :alt => '', :class => 'img-rounded') - %h3= link_to crop.system_name, crop + %p= link_to crop.system_name, crop - if crop.scientific_names.count > 0 %p %i - = crop.scientific_names.first.scientific_name + %small + = crop.scientific_names.first.scientific_name + - if (c % 6) == 0 + .row - if user_signed_in? %div