2024-01-22 17:17:24 +00:00
|
|
|
-# Componente Comentario
|
2024-02-27 18:05:16 +00:00
|
|
|
|
2024-03-04 16:11:17 +00:00
|
|
|
- in_reply_to = text_plain comment['inReplyTo']
|
|
|
|
|
2024-02-27 18:05:16 +00:00
|
|
|
.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
|
2024-02-27 18:05:16 +00:00
|
|
|
= 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']
|