Sha256: 33ee11cfc1764491ababb7e100713eb7ddb36b677bb38597d8b4428675c00789

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

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