- if can?(:edit, planting)
  .btn-group.planting-actions
    = render 'shared/buttons/edit', path: edit_planting_path(planting)
    = render 'shared/buttons/add_photo', path: new_photo_path(id: planting.id, type: 'planting')

    - if planting.active?
      = render 'shared/buttons/finish_planting', planting: planting
      = render 'shared/buttons/harvest_planting', planting: planting
      = render 'shared/buttons/save_seeds', planting: planting

  - if can? :destroy, planting
    = render 'shared/buttons/delete', path: planting

- if can?(:edit, planting)
  .btn-group.planting-actions
    = render 'shared/buttons/edit', path: edit_planting_path(planting)
    = render 'shared/buttons/add_photo', path: new_photo_path(id: planting.id, type: 'planting')

    - if planting.active?
      = render 'shared/buttons/finish_planting', planting: planting
      = render 'shared/buttons/harvest_planting', planting: planting
      = render 'shared/buttons/save_seeds', planting: planting

    - if can? :destroy, planting
      = render 'shared/buttons/delete', path: planting

Move planting delete action into the bar
Move planting delete action into the bar
