about summary refs log tree commit diff stats
path: root/app/views/admin/blogs/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/blogs/index.html.haml')
-rw-r--r--app/views/admin/blogs/index.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/admin/blogs/index.html.haml b/app/views/admin/blogs/index.html.haml new file mode 100644 index 0000000..448617a --- /dev/null +++ b/app/views/admin/blogs/index.html.haml
@@ -0,0 +1,10 @@
1%table#entries
2 %tr
3 %th Title
4 %th Date created
5 %th
6 - @blogs.each do |blog|
7 %tr{ class: cycle("even", "odd") }
8 %td= blog.title
9 %td= blog.created_at.strftime("%B %d, %Y, %l:%M%P")
10 %td= link_to "Edit", edit_admin_blog_url(blog)