about summary refs log tree commit diff stats
path: root/app/views/admin/blogs/drafts.html.haml
blob: 9deb395f0368e6c75270fced154d6c34fe4da21a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- title "Blog drafts"
%table#entries
  %tr
    %th Title
    %th Last updated
    %th
  - @blogs.each do |blog|
    %tr{ class: cycle("even", "odd") }
      %td= blog.title
      %td= blog.updated_at.strftime("%B %d, %Y, %l:%M%P")
      %td
        %ul.admin-actions
          %li= link_to "Preview", admin_blog_url(blog.id)
          %li= link_to "Edit", edit_admin_blog_url(blog.id)