about summary refs log tree commit diff stats
path: root/app/views/admin/blogs/index.html.haml
blob: 448617a382b444aad43a2da3b789be8f26974b28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
%table#entries
  %tr
    %th Title
    %th Date created
    %th
  - @blogs.each do |blog|
    %tr{ class: cycle("even", "odd") }
      %td= blog.title
      %td= blog.created_at.strftime("%B %d, %Y, %l:%M%P")
      %td= link_to "Edit", edit_admin_blog_url(blog)