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

10 lines
443 B
Text
Raw Normal View History

-# Componente Botonera de Moderación de Cuentas (Remote_profile)
.d-flex.flex-row
- btn_class = 'btn-secondary'
- ActorModeration.events.each do |actor_event|
= render 'components/btn_base',
text: t(".text_#{actor_event}"),
path: public_send(:"site_actor_moderation_#{actor_event}_path", actor_moderation_id: actor_moderation),
class: btn_class,
2024-03-04 20:14:46 +00:00
disabled: !actor_moderation.public_send(:"may_#{actor_event}?")