Sha256: 8c9c3b8b519c602cce6335e8dd34cdc91976dd78b1583754c2041bfe463c3b11

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

.page-header
  = link_to 'New Blog', new_admin_blog_path(@site), :class => 'btn pull-right'
  %h2 Blogs
  
= paginate @blogs
  
%table.table.table-hover.table-bordered
  - @blogs.each do |blog|
    %tr
      %td.main
        = link_to blog.label, edit_admin_blog_path(@site, blog)
        .item-meta
          = blog.identifier
          %br
          - blog_path = blog_posts_url(@site.path, blog.path)
          = link_to blog_path, blog_path, :target => '_blank'
      %td
        .btn-group
          = link_to pluralize(blog.posts.count, 'Post'), admin_blog_posts_path(@site, blog), :class => 'btn btn-small btn-inverse'
          = link_to pluralize(blog.comments.count, 'Comment'), admin_blog_comments_path(@site, blog), :class => 'btn btn-small btn-inverse'
      %td
        .btn-group
          = link_to 'Edit', edit_admin_blog_path(@site, blog), :class => 'btn btn-small'
          = link_to 'Delete', admin_blog_path(@site, blog), :method => :delete, :data => {:confirm => 'Are you sure?'}, :class => 'btn btn-small btn-danger'
          
= paginate @blogs

Version data entries

3 entries across 3 versions & 1 rubygems

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