mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 09:17:20 -04:00
* Ability to like activities * Ability to like activities * Add likeable everywhere * Refactor * Remove extra newline * Typo * Use classes, not IDs * Explicitly wait for ajax * Fix tests * Move likes under owner * Add separation * Move harvest likes near actions * Rearrange harvests * Render likes under owner * Make harvest consistent with other views * Move planting detail into header * Move detail into header * Move detail into header * Revert * Fix header * Move likes into jumotrons * Fix name * Change all actions to be after likes and a span * Cleanup * Cleanup * Cleanup * Cleanup * i18n and accessibility * Fix name * Temporarily make ack into a div * Update app/views/photos/_actions.html.haml
9 lines
539 B
Plaintext
9 lines
539 B
Plaintext
- if can?(:edit, harvest)
|
|
%span.dropdown.harvest-actions
|
|
%a#harvest-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" => "harvest-actions-button"}
|
|
= harvest_edit_button(harvest, classes: 'dropdown-item')
|
|
= add_photo_button(harvest, classes: 'dropdown-item')
|
|
.dropdown-divider
|
|
= delete_button(harvest, classes: 'dropdown-item text-danger')
|