- unless planting.finished?
  // Finish times
  - if planting.finish_is_predicatable?
    - if planting.super_late?
      %span.badge.badge-super-late= t('.super_late')
      = render 'shared/buttons/finish_planting', planting: planting
    - elsif planting.late?
      %span.badge.badge-late= t('.late_finishing')
    - else
      %span.badge
        = days_from_now_to_finished(planting)
        = t('.days_until_finished')

  // Harvest times
  - unless planting.super_late?
    - if planting.harvest_time?
      %span.badge.badge-harvest= t('.harvesting_now')
    - elsif planting.before_harvest_time?
      %span.badge
        = days_from_now_to_first_harvest(planting)
        = t('.days_until_harvest')

- unless planting.finished?
  // Finish times
  - if planting.finish_is_predicatable?
    - if planting.super_late?
      %span.badge.badge-super-late= t('.super_late')
      = planting_finish_button(planting)
    - elsif planting.late?
      %span.badge.badge-late= t('.late_finishing')
    - else
      %span.badge
        = days_from_now_to_finished(planting)
        = t('.days_until_finished')

  // Harvest times
  - unless planting.super_late?
    - if planting.harvest_time?
      %span.badge.badge-harvest= t('.harvesting_now')
    - elsif planting.before_harvest_time?
      %span.badge
        = days_from_now_to_first_harvest(planting)
        = t('.days_until_harvest')

Use new finish button on planting badges
Use new finish button on planting badges
