mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 11:21:06 -04:00
- 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.
8 lines
256 B
Plaintext
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)
|