Sha256: 71bcffb3105c43228bd837bbe3a1adc4355583fe892b46b7586ea2a591773f77

Contents?: true

Size: 969 Bytes

Versions: 4

Compression:

Stored size: 969 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

  - if @comments.blank?
    .alert.alert-info= t 'the_comments.no_comments_here'

  .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/haml/comment_body', locals: { comment: comment }

          - if current_user.comments_admin?
            = render partial: 'the_comments/haml/comment_edit', locals: { comment: comment }
            = render partial: 'the_comments/haml/manage_controls', locals: { comment: comment }
            = render partial: 'the_comments/haml/additional_info', 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/haml/manage.html.haml
the_comments_ruby-2.3.4 app/views/the_comments/haml/manage.html.haml
the_comments_ruby-2.3.3 app/views/the_comments/haml/manage.html.haml
the_comments-2.3.1 app/views/the_comments/haml/manage.html.haml