mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 17:54:59 -04:00
15 lines
452 B
Plaintext
15 lines
452 B
Plaintext
- if can?(:edit, crop) || can?(:destroy, crop)
|
|
%h4 Crop wrangling
|
|
%p
|
|
You are a
|
|
= succeed "." do
|
|
%strong CROP WRANGLER
|
|
%p
|
|
- if can? :edit, crop
|
|
= link_to 'Edit crop', edit_crop_path(crop), class: 'btn btn-default btn-xs'
|
|
- if can? :destroy, crop
|
|
= link_to 'Delete crop', crop,
|
|
method: :delete,
|
|
data: { confirm: 'Are you sure?' },
|
|
class: 'btn btn-default btn-xs'
|