mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-16 20:49:26 -04:00
* Upgrade boostrap * Remove deprecated bootstrap toggles * Migrate other details * Avoid accidentally including bootstrap twice * Avoid accidentally including bootstrap twice * Avoid accidentally including bootstrap twice * Fix spec * Fix spec, where the size of the screen has gone to a partial breakpoint/you can't click on your own name in tablet view * Fix spec * Cleanup * Cleanup
16 lines
809 B
Plaintext
16 lines
809 B
Plaintext
- if can?(:edit, seed)
|
|
.dropdown.seed-actions
|
|
%a#seed-actions-button.btn.btn-info.dropdown-toggle{"aria-expanded" => "false", "aria-haspopup" => "true", "data-bs-toggle" => "dropdown", type: "button", href: '#'}
|
|
Actions
|
|
.dropdown-menu.dropdown-menu-xs{"aria-labelledby" => "seed-actions-button"}
|
|
- if can?(:create, Planting) && can?(:update, seed) && seed.active
|
|
= link_to new_planting_path(seed_id: seed), class: 'dropdown-item success-color' do
|
|
= seed_icon
|
|
Plant seeds
|
|
= seed_edit_button(seed, classes: 'dropdown-item')
|
|
= add_photo_button(seed, classes: 'dropdown-item')
|
|
- if seed.active
|
|
= seed_finish_button(seed, classes: 'dropdown-item')
|
|
.dropdown-divider
|
|
= delete_button(seed, classes: 'dropdown-item text-danger')
|