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

12 lines
409 B
Text
Raw Normal View History

-# Componente Botonera de Comentarios
- local_data = { report: { confirm: t('.confirm_report') } }
2024-03-04 16:49:07 +00:00
.d-flex.flex-row
- ActivityPub.events.each do |event|
= render 'components/btn_base',
text: t(".text_#{event}"),
path: public_send(:"site_activity_pub_#{event}_path", activity_pub_id: activity_pub),
disabled: !activity_pub.public_send(:"may_#{event}?"),
data: local_data[event]