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

11 lines
417 B
Text
Raw Normal View History

-# Componente botonera de moderación de Instancias
- local_data = {}
- InstanceModeration.events.each do |event|
= render 'components/btn_base',
path: public_send(:"site_instance_moderation_#{event}_path", instance_moderation_id: instance_moderation),
text: t(".text_#{event}"),
class: 'btn btn-secondary',
disabled: !instance_moderation.public_send(:"may_#{event}?"),
data: local_data[event]