Sha256: 809ee3bc5b2976f1a4b0db793c1e31bda67eae0272ff58e46e6fafa0079c72b1

Contents?: true

Size: 557 Bytes

Versions: 4

Compression:

Stored size: 557 Bytes

Contents

- content_for :title do
  = t "the_comments.management"

- content_for :comments_sidebar do
  = render partial: 'the_comments/slim/sidebar'

- content_for :comments_main do
  = paginate @comments

  .comments
    - @comments.each do |comment|
      - klass = { published: :success, draft: :info, deleted: :danger }[comment.state.to_sym]
      .panel  class: "panel-#{klass}"  
        .panel-heading= comment.header_title
        .panel-body
          = render partial: 'the_comments/slim/comment_body', locals: { comment: comment }

  = paginate @comments

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
fuck_comments-2.3.4 app/views/the_comments/slim/index.html.slim
the_comments_ruby-2.3.4 app/views/the_comments/slim/index.html.slim
the_comments_ruby-2.3.3 app/views/the_comments/slim/index.html.slim
the_comments-2.3.1 app/views/the_comments/slim/index.html.slim