mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-14 03:05:59 -04:00
* Pull in openfarm icons, photos, info * Truncating member location * tidying up harvest display, and reducing duplication in css styles * Tiny crop chip * only show crop charts if there is data to show * Make the styles more Growstuff * Fixed links to openfarm * Updating specs to cope with new photo sources fix broken garden timeline on some pages * Update homepage blurb * Import crop companions * More fluid page * use thumbnail unless the source is flickr * Messing with homepage * Added crop growing_degree_days * expect full size url on photos helper spec * formatted dates from seeds#show * tidy up places#show * Move progress bar * Quicker buttons for approve/reject crops * Remove kaminari gem * use crop cards on hierarchy page * more crops on crops#index * Wrap photo creation in transaction * Wrap crop companions in a transaction
21 lines
823 B
Plaintext
21 lines
823 B
Plaintext
- if can?(:edit, crop) || can?(:destroy, crop)
|
|
.alert.alert-success{role: "alert"}
|
|
%p
|
|
You are a
|
|
%strong CROP WRANGLER
|
|
.dropdown.crop-actions
|
|
%a#crop-actions-button.btn.btn-info.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-toggle" => "dropdown", :type => "button", href: '#'} Actions
|
|
.dropdown-menu.dropdown-menu-xs{"aria-labelledby" => "crop-actions-button"}
|
|
= link_to edit_crop_path(crop), class: 'dropdown-item' do
|
|
= edit_icon
|
|
= t('.edit')
|
|
|
|
= link_to crop_openfarm_path(crop), method: :post, class: 'dropdown-item' do
|
|
= icon 'far', 'update'
|
|
Fetch data from OpenFarm
|
|
|
|
- if can? :destroy, crop
|
|
.dropdown-divider
|
|
= delete_button(crop, classes: 'dropdown-item text-danger')
|
|
|