%h2 Harvests
- if can?(:edit, planting) && !planting.failed
  = render 'harvests/modal', harvest: Harvest.new(crop: planting.crop, planting: planting)
- if planting.harvests.empty?
  %p No harvests recorded
  - if planting.finished? && can?(:edit, planting) && can?(:create, Harvest)
    %p Record your harvests here to improve crop predictions, and you'll be able to compare with your garden next season.
- else
  .index-cards
    - planting.harvests.each do |harvest|
      = render 'harvests/thumbnail', harvest: harvest
