mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-06-01 04:38:27 -04:00
* Fix #3802 Show crop link * Fix #3802 Show crop link * Fix missing arg * Fix missing arg * Translations
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
.media
|
|
= link_to(image_tag(photo.thumbnail_url, width: 150, class: 'rounded', alt: photo.title), photo)
|
|
.media-body
|
|
%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) |