Sha256: 8ef7d3dfb55e3adc3e35633e51696bbee7b3008c444bbe425981a2623ac8d309

Contents?: true

Size: 1002 Bytes

Versions: 6

Compression:

Stored size: 1002 Bytes

Contents

- cuser = current_user

- 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: :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 }
          
          - if cuser.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

6 entries across 6 versions & 1 rubygems

Version Path
the_comments-2.2.2 app/views/the_comments/haml/my_comments.html.haml
the_comments-2.2.1 app/views/the_comments/haml/my_comments.html.haml
the_comments-2.2.0 app/views/the_comments/haml/my_comments.html.haml
the_comments-2.1.0 app/views/the_comments/haml/my_comments.html.haml
the_comments-2.0.1 app/views/the_comments/haml/my_comments.html.haml
the_comments-2.0.0 app/views/the_comments/haml/my_comments.html.haml