mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-01-25 09:47:55 -05:00
18 lines
539 B
Plaintext
18 lines
539 B
Plaintext
.thumbnail(style='height: 220px')
|
|
- if crop
|
|
= link_to image_tag('http://placehold.it/150x150', :alt => '', :class => 'img-rounded'), crop
|
|
%p
|
|
= link_to crop.system_name, crop
|
|
- if crop.scientific_names.count > 0
|
|
%br/
|
|
%i
|
|
%small
|
|
= crop.scientific_names.first.scientific_name
|
|
%br/
|
|
%small
|
|
Planted
|
|
= pluralize(crop.plantings_count, "time")
|
|
- else
|
|
= image_tag('http://placehold.it/150x150', :alt => '', :class => 'img-rounded')
|
|
Sample crop
|