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