.block.posted-comment.row data-id=comment.id .col-sm-1.pt5 = image_tag comment.user.image_url(:thumb), alt: comment.user.name, title: comment.user.name, width:'30' .col-sm-11.fs8.pl0 .inline.mr5.mt10 = link_to comment.user.full_name, profile_path(comment.user) .inline.comment-time .livetimestamp data-time-iso8601=comment.created_at.to_s(:iso8601) data-time-format='dddd, MMMM Do YYYY, h:mm:ss a' .fs8.pt2.linkify = comment.body .attachments id="comment-#{comment.id}-attachments" - comment.attachments.each do |attachment| .cboxset .filename - unless attachment.image? = link_to attachment.url, alt: attachment.attachment_file_name, title:attachment.attachment_file_name, target: :_blank .fa.fa-download.fs30 - else = link_to attachment.url, data: {title: attachment.attachment_file_name, toggle: :lightbox, gallery: "comment-#{comment.id}-gallery"}, 'data-gallery_parent_selector' => "#comment-#{comment.id}-attachments" do = image_tag attachment.url(:thumb), alt: attachment.attachment_file_name .filetype = attachment.attachment_content_type.split('/').last .filesize = number_to_human_size(attachment.attachment_file_size) - if comment.user_id == current_user.id = link_to comment_path(comment), method: :delete, class: 'inline pull-right ', data: {confirm: "Are you sure?", target: '#remote-modal', remote: true} do i.fa.fa-trash.fs9 - if comment.commentable.is_a? Question .comment-box data-commentable-type=comment.commentable.class.name data-commentable-id=comment.commentable.id data-parent-id=comment.id - if comment.comments_count - 4 > 0 .show-more-comments id="show-more-comments-#{comment.id}" = link_to polymorphic_path([comment.commentable, Comment], parent_id: comment), remote: true do i.fa.fa-comment-o = t('.show_comments_count', count: comment.comments_count - 4) .comments id="comments-#{comment.id}" - comment.children.recent.includes(:user, :attachments).reverse.each do |comment| = render 'comments/comment', comment: comment - if comment.parent_id.nil? .plr10.pt5.bdr.ml-2.mr-2.mb5.row = render 'comments/form', comment: comment.children.build