mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-11 09:40:04 -04:00
17 lines
589 B
Plaintext
17 lines
589 B
Plaintext
.thumbnail
|
|
.crop-thumbnail
|
|
- if crop
|
|
- cache cache_key_for(Crop, crop.id) do
|
|
= link_to image_tag((crop.default_photo ? crop.default_photo.thumbnail_url : 'placeholder_150.png'),
|
|
alt: crop.name, class: 'img'),
|
|
crop
|
|
.cropinfo
|
|
.cropname
|
|
= link_to crop.name, crop
|
|
- unless crop.scientific_names.empty?
|
|
.scientificname
|
|
= crop.scientific_names.first.name
|
|
.plantingcount
|
|
Planted
|
|
= pluralize(crop.plantings.size, "time")
|