mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-15 11:46:31 -04:00
17 lines
531 B
Plaintext
17 lines
531 B
Plaintext
- cache cache_key_for(Crop, crop.id) do
|
|
.thumbnail
|
|
.crop-thumbnail
|
|
- if crop
|
|
= link_to image_tag(crop_image_path(crop),
|
|
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")
|