-# Componente Botonera de ModeraciĆ³n de Cuentas (Remote_profile) - form_params = {} - form_params[:report] = { actor_moderation: { remote_flag_attributes: { message: '' } } } - I18n.available_locales.each do |locale| - form_params[:report][:actor_moderation][:remote_flag_attributes][:message] += t(locale) - form_params[:report][:actor_moderation][:remote_flag_attributes][:message] += ': ' - form_params[:report][:actor_moderation][:remote_flag_attributes][:message] += t('.report_message', locale: locale, panel_actor_mention: ENV.fetch('PANEL_ACTOR_MENTION') { '@sutty@sutty.nl' }) - form_params[:report][:actor_moderation][:remote_flag_attributes][:message] += '\n\n' .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, disabled: !actor_moderation.public_send(:"may_#{actor_event}?"), params: form_params[actor_event]