/src/

/app/views/admin/blogs/index.html.haml?id=2dea596dbb31f3794744a1bd2c9ec6091d8dfdff'>plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- title "Blogs"
%table#entries
  %tr
    %th Title
    %th Date published
    %th
  - @blogs.each do |blog|
    %tr{ class: cycle("even", "odd") }
      %td= blog.title
      %td= blog.published_at.strftime("%B %d, %Y, %l:%M%P")
      %td
        %ul.admin-actions
          %li= link_to "View", blog
          %li= link_to "Edit", edit_admin_blog_url(blog.id)