Sha256: fcb08ccc17356b8c39001db7f1b01dbf0e928f81c6d61d1e0cd37e5f357a5833

Contents?: true

Size: 1.64 KB

Versions: 6

Compression:

Stored size: 1.64 KB

Contents

- @page_title = "Comments"
- @page_title = "#{link_to @blog.name, admin_blog_articles_path(@blog)} > #{@article.title} Comments".html_safe

.row-fluid
  = render :partial => "/gluttonberg/admin/content/main/sidebar"
  .span9
    .row-fluid
      .page-header
        %h1
          = @page_title
      .subnav
      - if @comments.empty?
        %p.empty No Comments
      - else
        %table{:cellpadding => 0, :cellspacing => 0, :summary => "Articles" , :class => "table table-bordered "}
          %thead
            %tr
              %th
                Author
              %th
                Comment
              %th
                Date Commented
              %th.controls
                Controls
          %tbody
            - @comments.each do |comment|
              %tr
                %td{:style => "width:10%;"}
                  = comment.author_name
                %td{:style => "width:40%;"}
                  = simple_format(comment.body)
                %td{:style => "width:17%;"}
                  = comment.created_at
                %td.controls{:style => "width:35%;"}
                  - if comment.moderation_required && can?(:moderate , Gluttonberg::Comment)
                    = link_to("Approve", moderation_admin_blog_article_comment_path(@blog, @article, comment, :moderation => "approve"), :class => "btn")
                    = link_to( "Disapprove", moderation_admin_blog_article_comment_path(@blog, @article, comment, :moderation => "disapprove") , :class => "btn")
                    = link_to("Delete", delete_admin_blog_article_comment_path(@blog, @article, comment), :class => "btn btn-danger")
        = will_paginate(@comments)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gluttonberg-core-2.5.5 app/views/gluttonberg/admin/content/comments/index.html.haml
gluttonberg-core-2.5.4 app/views/gluttonberg/admin/content/comments/index.html.haml
gluttonberg-core-2.5.3 app/views/gluttonberg/admin/content/comments/index.html.haml
gluttonberg-core-2.5.2 app/views/gluttonberg/admin/content/comments/index.html.haml
gluttonberg-core-2.5.1 app/views/gluttonberg/admin/content/comments/index.html.haml
gluttonberg-core-2.5 app/views/gluttonberg/admin/content/comments/index.html.haml