mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 13:56:22 +00:00
5 lines
346 B
Text
5 lines
346 B
Text
- 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),
|
|
path: filter_states(actor_state: actor_state),
|
|
class: ('active' if active?(ActorModeration.states, :actor_state, actor_state))
|