Files
growstuff/app/views/crops/_thumbnail.html.haml
2019-11-24 08:45:23 +13:00

13 lines
338 B
Plaintext

- cache crop do
.card.crop-thumbnail
= link_to image_tag(crop_image_path(crop),
alt: crop.name,
class: 'img img-card'),
crop
.text
%h3.crop-name= link_to crop, crop
%h5.crop-sci-name
 
= crop.default_scientific_name