.block.posted-comment 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 .clearfix .attachments id="comment-#{comment.id}-attachments" - comment.attachments.each do |attachment| .cboxset .filename - unless attachment.image? = link_to attachment.attachment_file_name, 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 .clearfix