Sha256: 81960e23d8c85145782b62b13775ec3b64c2c2a2aef23f2a43c92fdc864a22ea

Contents?: true

Size: 774 Bytes

Versions: 3

Compression:

Stored size: 774 Bytes

Contents

%tr{:id => dom_id(comment)}
  %td
    = link_to comment.post.title.truncate(25), comfy_admin_blog_comments_path(@site, @blog, :post_id => comment.post)
  %td.main
    = comment.author
    .item-meta
      = mail_to comment.email
      %br
      = comment.content
  %td
    = comment.created_at.to_s(:db)
  %td
    - label, css_class = comment.is_published?? ['Unpublish', 'btn-danger'] : ['Publish', 'btn-info']
    = link_to label, toggle_publish_comfy_admin_blog_comment_path(@site, @blog, comment), :method => :patch, :remote => true, :class => "btn btn-sm #{css_class}"
  %td
    .btn-group.btn-group-sm
      = link_to 'Delete', comfy_admin_blog_comment_path(@site, @blog, comment), :method => :delete, :data => {:confirm => 'Are you sure?'}, :class => 'btn btn-danger'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_blog-1.12.3 app/views/comfy/admin/blog/comments/_comment.html.haml
comfy_blog-1.12.2 app/views/comfy/admin/blog/comments/_comment.html.haml
comfy_blog-1.12.1 app/views/comfy/admin/blog/comments/_comment.html.haml