mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-11-03 19:54:16 -05:00
8 lines
298 B
Plaintext
8 lines
298 B
Plaintext
- if can?(:edit, photo) && can?(:destroy, photo)
|
|
= actions_menu('photo', classes: 'float-end') do
|
|
= menu_modal_link :edit, t('buttons.edit'), '#photo-edit-modal'
|
|
.dropdown-divider
|
|
= menu_delete_button(photo)
|
|
-# The dialog the Edit item opens.
|
|
= render 'photos/edit_modal', photo:
|