.col-xs-12.col-sm-8.text-left = render 'dashboard/show/cal_pay_feeds_tasks_tab', active_tab: {} .row #feed.col-xs-12.col-sm-4 #feed-comments-list.icp.panel-group.w96pct role="tablist" aria-multiselectable="true" .infinitescroll .infinitescroll-page.panel-group#accordion.no-padding data-binder=".main-scroll-area" .col-xs-12.plr0.infinitescroll-element.pt5.mb5.bdr .panel .group-feed data-id=@post.id data-type='Post' .col-xs-2.col-sm-1.plr0.center .post-owner = image_tag @post.owner.image_url(:thumb), alt: @post.owner.try(:name) rescue "" .col-xs-8.col-sm-9.plr0 - if @post.subject .post-subject.pt3 = "#{@post.group.try(:name)} - " = @post.subject .feed-time == t(".#{@post.feed.key}", user: link_to(@post.owner.full_name, profile_path(@post.owner)), time: (@post.created_at).to_s(:iso8601)) rescue "" .post-body.linkify == @post.body = render 'show', post: @post a.comments-count href="javascript:void(0)" = t('.comments_count', count: @post.comments_count) - if @post.owner == current_user .col-xs-2.col-sm-2.text-right = link_to edit_post_path(@post), class: 'inline', data: {toggle: :modal, target: '#remote-modal'} do i.fa.fa-edit.mr5.fs10 = link_to @post, method: :delete, data: {confirm: "Are you sure?", target: '#remote-modal', remote: true}, class: 'inline' i.fa.fa-trash.fs10.regular - if @post.comments_count - 4 > 0 .show-more-comments.col-xs-12.col-sm-12.pl0 = link_to polymorphic_path([@post, Comment]), remote: true do i.fa.fa-comment-o = t('.show_comments_count', count: @post.comments_count - 4) .comment-box.col-xs-12.col-sm-12 - @post.root_comments.recent.includes(:user, :attachments).reverse.each do |comment| = render 'comments/comment', comment: comment .plr10.pt5.ml-2.mr-2 .col-sm-1.pl5.pt3.text-center = image_tag current_user.image_url(:thumb), alt: current_user.name, width: '30' .col-sm-11.plr0.new-comment-form.relative = render 'comments/form', comment: @post.root_comments.build .clearfix