app/views/the_comments/haml/manage.html.haml in the_comments-2.2.2 vs app/views/the_comments/haml/manage.html.haml in the_comments-2.3.1

- old
+ new

@@ -10,16 +10,17 @@ - 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] + - klass = { published: :success, draft: :info, deleted: :danger }[comment.state.to_sym] .panel{ class: "panel-#{klass}" } - .panel-heading= comment.title + .panel-heading= comment.header_title .panel-body - = render partial: 'the_comments/haml/comment_edit', locals: { comment: comment } = render partial: 'the_comments/haml/comment_body', 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 \ No newline at end of file + - 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