Removed commented out code

This commit is contained in:
Brenda Wallace
2017-12-14 08:42:51 +13:00
parent f8e51f4b45
commit fcd3e36e36

View File

@@ -9,32 +9,3 @@
= link_to @seed, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-default btn-xs' do
%span.glyphicon.glyphicon-trash{ title: "Delete" }
Delete
-# - if can?(:edit, planting) || can?(:destroy, planting)
-# - if can? :edit, planting
-# = link_to edit_planting_path(planting), class: 'btn btn-default btn-xs' do
-# %span.glyphicon.glyphicon-pencil{ title: "Edit" }
-# Edit
-# - if can? :destroy, planting
-# = link_to planting, method: :delete,
-# data: { confirm: 'Are you sure?' }, class: 'btn btn-default btn-xs' do
-# %span.glyphicon.glyphicon-trash{ title: "Delete" }
-# Delete
-# - unless planting.finished
-# = link_to planting_path(planting, planting: { finished: 1 }),
-# method: :put, class: 'btn btn-default btn-xs append-date' do
-# %span.glyphicon.glyphicon-ok{ title: "Finished" }
-# Mark as finished
-# - if can?(:create, Harvest)
-# = link_to new_planting_harvest_path(planting), class: 'btn btn-default btn-xs' do
-# %span.glyphicon.glyphicon-leaf{ title: "Harvest" }
-# Harvest
-# - if can?(:edit, planting) && can?(:create, Photo)
-# = link_to new_photo_path(id: planting.id, type: 'planting'), class: 'btn btn-default btn-xs' do
-# %span.glyphicon.glyphicon-camera{ title: "Add photo" }
-# Add photo