Sha256: b320cc50b20f509eced0395c031956128ea91c28dc871657f2c1aba993e25e15

Contents?: true

Size: 552 Bytes

Versions: 6

Compression:

Stored size: 552 Bytes

Contents

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

- content_for :comments_sidebar do
  = render partial: 'the_comments/haml/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/haml/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/haml/index.html.haml
the_comments-2.2.1 app/views/the_comments/haml/index.html.haml
the_comments-2.2.0 app/views/the_comments/haml/index.html.haml
the_comments-2.1.0 app/views/the_comments/haml/index.html.haml
the_comments-2.0.1 app/views/the_comments/haml/index.html.haml
the_comments-2.0.0 app/views/the_comments/haml/index.html.haml