From fcd3e36e36761ea4cc57dfe9b7019312d7e2e50f Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Thu, 14 Dec 2017 08:42:51 +1300 Subject: [PATCH] Removed commented out code --- app/views/seeds/_actions.html.haml | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/app/views/seeds/_actions.html.haml b/app/views/seeds/_actions.html.haml index f162f5184..9584182f0 100644 --- a/app/views/seeds/_actions.html.haml +++ b/app/views/seeds/_actions.html.haml @@ -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