Sha256: 3e8c39cc71a2786938d020a4bc2a6f3ce4e20550f9d87f051a4c1266d5d2b430

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

.page-header
  = link_to 'New Blog Post', new_admin_blog_post_path(@site, @blog), :class => 'btn pull-right'
  %h2 Blog Posts
  
= paginate @posts
  
%table.table.table-hover.table-bordered
  %tr
    %th.main Title
    %th Author
    %th Published
    %th Comments
    %th
    
  - @posts.each do |post|
    %tr
      %td.main
        = link_to post.title, edit_admin_blog_post_path(@site, @blog, post)
        .item-meta
          = post.excerpt
      %td
        = post.author
      %td
        = post.published_at.try(:to_s, :db)
      %td
        = link_to pluralize(post.comments.count, 'Comment'), admin_blog_comments_path(@site, @blog, :post_id => post.id), :class => 'btn btn-small btn-inverse'
      %td
        .btn-group
          = link_to 'Edit', edit_admin_blog_post_path(@site, @blog, post), :class => 'btn btn-small'
          = link_to 'Delete', admin_blog_post_path(@site, @blog, post), :method => :delete, :data => {:confirm => 'Are you sure?'}, :class => 'btn btn-small btn-danger'
          
= paginate @posts

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_blog-1.1.1 app/views/admin/blog/posts/index.html.haml
comfy_blog-1.1.0 app/views/admin/blog/posts/index.html.haml
comfy_blog-1.0.0 app/views/admin/blog/posts/index.html.haml