5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 21:46:22 +00:00
panel/app/views/components/_comments_checked_submenu.haml

10 lines
408 B
Text
Raw Normal View History

2024-03-08 16:08:24 +00:00
-#
@param form [String]
- current_state = params[:activity_pub_state]&.to_sym || ActivityPub.states.first
- ActivityPub.aasm.events.each do |event|
- next if ActivityPub::IGNORED_EVENTS.include? event.name
- next unless event.transitions_from_state?(current_state)
2024-03-08 16:08:24 +00:00
= render 'components/dropdown_button', form: form, text: t(".submenu_#{event.name}"), name: 'activity_pub_action', value: event.name