mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-29 20:25:09 -04:00
Fix weird linebreaks on crops index page.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user