2024-02-09 17:45:12 +00:00
|
|
|
-# Componente Botonera de Moderación de Cuentas (Remote_profile)
|
2024-03-21 14:14:36 +00:00
|
|
|
.d-flex.flex-row.w-100
|
|
|
|
- local = { report: { class: 'ml-auto', data: { confirm: t('.confirm_report') } } }
|
2024-02-29 18:54:53 +00:00
|
|
|
- ActorModeration.events.each do |actor_event|
|
2024-04-19 16:07:49 +00:00
|
|
|
- possible = actor_moderation.public_send(:"may_#{actor_event}?")
|
2024-03-21 14:14:36 +00:00
|
|
|
%div{ class: local.dig(actor_event, :class) }
|
|
|
|
= 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-secondary' if possible),
|
|
|
|
disabled: !possible,
|
|
|
|
data: local.dig(actor_event, :data)
|