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

6 lines
331 B
Text
Raw Normal View History

2024-03-05 19:24:16 +00:00
- InstanceModeration.states.each do |state|
= render 'components/dropdown_item',
text: t(".submenu_#{state}", count: instance_moderations.unscope(where: :aasm_state).public_send(state).count),
2024-03-18 20:13:32 +00:00
path: filter_states(instance_state: state),
class: ('active' if active?(InstanceModeration.states, :instance_state, state))