mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-19 22:38:55 -04:00
Smaller photos on crop page. Fits in the predictions data
This commit is contained in:
@@ -13,9 +13,7 @@
|
||||
%b Scientific name:
|
||||
= crop.default_scientific_name
|
||||
%p
|
||||
%b
|
||||
Planted
|
||||
= pluralize(crop.plantings.size, "time")
|
||||
%b Planted #{pluralize(crop.plantings.size, "time")}
|
||||
by #{ENV['GROWSTUFF_SITE_NAME']} members
|
||||
|
||||
- unless crop.median_lifespan.nil?
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
%h2 Photos of #{crop.name} harvests
|
||||
.row
|
||||
- unless crop.harvest_photos.empty?
|
||||
- crop.harvest_photos.includes(:owner).first(3).each do |p|
|
||||
.col-md-4
|
||||
- unless crop.harvest_photos.empty?
|
||||
%h3 Photos of #{crop.name} harvests
|
||||
.row
|
||||
- crop.harvest_photos.includes(:owner).first(6).each do |p|
|
||||
.col-xs-6.col-md-2
|
||||
= render "photos/thumbnail", photo: p
|
||||
|
||||
%h2 Photos of #{crop.name} plants
|
||||
.row
|
||||
- unless crop.photos.empty?
|
||||
- crop.photos.includes(:owner).first(3).each do |p|
|
||||
.col-md-4
|
||||
- unless crop.photos.empty?
|
||||
%h3 Photos of #{crop.name} plants
|
||||
.row
|
||||
- crop.photos.includes(:owner).first(6).each do |p|
|
||||
.col-xs-6.col-md-2
|
||||
= render "photos/thumbnail", photo: p
|
||||
.row
|
||||
= link_to "more photos", crop_photos_path(crop_id: crop.id)
|
||||
|
||||
Reference in New Issue
Block a user