Files
growstuff/app/views/crops/_image_with_popover.html.haml
Daniel O'Connor 7d63234841 Upgrade to bootstrap 5 (#3605)
* Upgrade boostrap

* Remove deprecated bootstrap toggles

* Migrate other details

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Avoid accidentally including bootstrap twice

* Fix spec

* Fix spec, where the size of the screen has gone to a partial breakpoint/you can't click on your own name in tablet view

* Fix spec

* Cleanup

* Cleanup
2024-03-10 11:49:22 +10:30

11 lines
446 B
Plaintext

- 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