mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:06:23 +00:00
5 lines
331 B
Text
5 lines
331 B
Text
- InstanceModeration.states.each do |state|
|
|
= render 'components/dropdown_item',
|
|
text: t(".submenu_#{state}", count: instance_moderations.unscope(where: :aasm_state).public_send(state).count),
|
|
path: filter_states(instance_state: state),
|
|
class: ('active' if active?(InstanceModeration.states, :instance_state, state))
|