extracted crop thumbnail into a partial

This commit is contained in:
Skud
2012-11-26 20:53:00 +11:00
parent 6d3a4e6be6
commit 1d6fedf712

View File

@@ -0,0 +1,9 @@
.thumbnail(style='height: 200px')
= image_tag('http://placehold.it/150x150', :alt => '', :class => 'img-rounded')
%p= link_to crop.system_name, crop
- if crop.scientific_names.count > 0
%p
%i
%small
= crop.scientific_names.first.scientific_name