Files
growstuff/app/views/timeline/_photos.html.haml
T
Brenda WallaceandClaude Sonnet 5 b15b92c08e Replace the remaining Bootstrap 4 components with Bootstrap 5 equivalents
form-inline -> flex utilities, embed-responsive -> ratio ratio-16x9,
input-group-prepend wrapper removed (Bootstrap 5 puts the addon directly in
the group), and media/media-body -> d-flex/flex-grow-1.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-20 18:05:19 +12:00

32 lines
1.2 KiB
Plaintext

.d-flex
= link_to(image_tag(photo.thumbnail_url, width: 150, class: 'rounded', alt: photo.title), photo)
.flex-grow-1.ms-3
%p
%ul.associations
- photo.crops.each do |crop|
%li= render 'crops/tiny', crop: crop
- photo.plantings.each do |planting|
%li
= planting_icon
= link_to t('photos.show.planting', planting: planting.to_s, owner: planting.owner.to_s), planting_path(planting)
- photo.harvests.each do |harvest|
%li
= harvest_icon
= link_to t('photos.show.harvest', crop: harvest.crop.name, owner: harvest.owner.to_s), harvest_path(harvest)
- photo.gardens.each do |garden|
%li
= garden_icon
= link_to t('photos.show.garden', garden: garden.to_s, owner: garden.owner.to_s), garden_path(garden)
- photo.seeds.each do |seed|
%li
= seed_icon
= link_to t('photos.show.seed', seed: seed.to_s, owner: seed.owner.to_s), seed_path(seed)
- photo.crops.each do |crop|
%li
= crop_icon(crop)
= link_to t('photos.show.crop', crop: crop.to_s), crop_path(crop)