From 6daca910abec4eeb29c99d7c5465e6c46cdc0677 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Wed, 5 Jun 2019 23:24:34 +1200 Subject: [PATCH] Fixed buttons on crops#show --- app/views/crops/_actions.html.haml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/app/views/crops/_actions.html.haml b/app/views/crops/_actions.html.haml index dc155e7aa..60d337c77 100644 --- a/app/views/crops/_actions.html.haml +++ b/app/views/crops/_actions.html.haml @@ -1,17 +1,16 @@ - if @crop.approved? && signed_in? .crop-actions - .btn-toolbar{"data-toggle" => "buttons"} - - if can? :create, Planting - = link_to new_planting_path(crop_id: crop.id), class: 'btn btn-sm' do - = planting_icon - = t('buttons.plant_crop', crop_name: crop.name) + - if can? :create, Planting + = link_to new_planting_path(crop_id: crop.id), class: 'btn btn-sm' do + = planting_icon + = t('buttons.plant_crop', crop_name: crop.name) - - if can? :create, Harvest - = link_to new_harvest_path(crop_id: crop.id), class: 'btn btn-sm' do - = harvest_icon - = t('buttons.harvest_crop', crop_name: crop.name) + - if can? :create, Harvest + = link_to new_harvest_path(crop_id: crop.id), class: 'btn btn-sm' do + = harvest_icon + = t('buttons.harvest_crop', crop_name: crop.name) - - if can? :create, Seed - = link_to new_seed_path(crop_id: crop.id), class: 'btn btn-sm' do - = seed_icon - = t('buttons.add_seed_to_stash', crop_name: crop.name) + - if can? :create, Seed + = link_to new_seed_path(crop_id: crop.id), class: 'btn btn-sm' do + = seed_icon + = t('buttons.add_seed_to_stash', crop_name: crop.name)