Growstuff/growstuff

View on GitHub
app/views/crops/_image_with_popover.html.haml

Summary

Maintainability
Test Coverage
- cache crop do
  = link_to image_tag(crop_image_path(crop),
                      alt: "Image of #{crop.name}", class: 'image-responsive crop-image'),
            crop.name,
            rel: "popover",
            'data-bs-toggle': 'popover',
            'data-bs-trigger': 'hover',
            'data-bs-title': crop.name,
            'data-bs-content': render(partial: 'crops/popover', locals: { crop: crop }),
            'data-bs-html': true