mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-02 05:31:01 -05:00
Removed commented out code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user