5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 04:36:21 +00:00
panel/app/views/moderation_queue/_comment.haml

27 lines
835 B
Text
Raw Normal View History

-# Componente Comentario
2024-03-04 16:11:17 +00:00
- in_reply_to = text_plain comment['inReplyTo']
.row.no-gutters
.col-1
= render 'components/checkbox', id: comment['id']
.col-11
2024-03-04 14:59:29 +00:00
.d-flex.flex-row.align-items-center.justify-content-between
%h4.mb-0
2024-03-04 16:11:17 +00:00
%a{ href: text_plain(comment['attributedTo']) }= text_plain profile['preferredUsername']
2024-03-04 14:59:29 +00:00
%small
= render 'layouts/time', time: comment['published']
2024-03-04 16:11:17 +00:00
- if in_reply_to.present?
2024-03-04 14:59:29 +00:00
%dl
%dt.d-inline
%small= t('.reply_to')
%dd.d-inline
%small
2024-03-04 16:11:17 +00:00
%a{ href: in_reply_to) }= in_reply_to
2024-03-04 14:59:29 +00:00
%div
- if comment['summary'].present?
2024-03-04 16:11:17 +00:00
= render 'layouts/details', summary: text_plain(comment['summary']), summary_class: 'h5' do
2024-03-04 14:59:29 +00:00
= sanitize comment['content']
- else
= sanitize comment['content']