From c650bee03937bd0e741e701f1fe0bfe5cf8e040e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 12 Aug 2018 07:10:16 -0400 Subject: Add link entry type --- app/views/admin/links/index.html.haml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/views/admin/links/index.html.haml (limited to 'app/views/admin/links/index.html.haml') 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 @@ +- title "Links" +%table#entries + %tr + %th Title + %th Date created + %th + - @links.each do |link| + %tr{ class: cycle("even", "odd") } + %td= link.title + %td= link.created_at.strftime("%B %d, %Y, %l:%M%P") + %td + %ul.admin-actions + %li= link_to "Edit", edit_admin_link_url(link) + %li= link_to "Show", link.url -- cgit 1.4.1