Sha256: efd2f6e8befe42dfc465c8e12b87b9fe7c4f80a9f28d5e9efd01eb3b552320b2

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 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: :primary, draft: :warning, deleted: :danger }[comment.state.to_sym]
      .panel  class: "panel-#{klass}"  
        .panel-heading= comment.title
        .panel-body
          = render partial: 'the_comments/slim/comment_body', locals: { comment: comment }

  = paginate @comments

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
the_comments-2.2.2 app/views/the_comments/slim/index.html.slim
the_comments-2.2.1 app/views/the_comments/slim/index.html.slim
the_comments-2.2.0 app/views/the_comments/slim/index.html.slim
the_comments-2.1.0 app/views/the_comments/slim/index.html.slim
the_comments-2.0.1 app/views/the_comments/slim/index.html.slim
the_comments-2.0.0 app/views/the_comments/slim/index.html.slim