Sha256: 24a49064afa9ef4072d511e14ba349a4241a819a6d149cb08f1fc811fef65f8f

Contents?: true

Size: 923 Bytes

Versions: 6

Compression:

Stored size: 923 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: :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_edit', locals: { comment: comment }
          = render partial: 'the_comments/slim/comment_body', 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

6 entries across 6 versions & 1 rubygems

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