Files
growstuff/app/views/posts/_actions.html.haml
T
Brenda Wallace 334e7a8370 feat: integrate Tiptap editor for post body editing
- Updated post actions menu to link directly to the edit post path.
- Enhanced post form to include a React-based body editor using Tiptap, with a fallback to a plain textarea.
- Added Tiptap dependencies to package.json and updated yarn.lock.
- Created a feature spec to verify navigation to the edit page from the post actions menu.
2026-10-26 15:22:45 +13:00

8 lines
256 B
Plaintext

- if can? :edit, post
= actions_menu('post', classes: 'float-end') do
= menu_link_to :edit, t('buttons.edit'), edit_post_path(post)
= menu_add_photo_link(post)
- if can? :destroy, post
.dropdown-divider
= menu_delete_button(post)