Sha256: 1432daa7d86b5e6911fb0903248d22193d2f1caaefad3bcd15e4fd5b2cc4de6b
Contents?: true
Size: 1003 Bytes
Versions: 10
Compression:
Stored size: 1003 Bytes
Contents
- cuser = current_user - 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_body', locals: { comment: comment } - if cuser.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
10 entries across 10 versions & 3 rubygems