5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 15:56:21 +00:00
panel/app/views/components/_profiles_show_submenu.haml

6 lines
346 B
Text
Raw Normal View History

- ActorModeration.states.each do |actor_state|
= render 'components/dropdown_item',
text: t(".submenu_#{actor_state}", count: actor_moderations.unscope(where: :aasm_state).public_send(actor_state).count),
2024-03-18 20:13:32 +00:00
path: filter_states(actor_state: actor_state),
class: ('active' if active?(ActorModeration.states, :actor_state, actor_state))