diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-12 07:10:16 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-12 07:10:16 -0400 |
commit | c650bee03937bd0e741e701f1fe0bfe5cf8e040e (patch) | |
tree | c0020572ceef21498da9b52851242b22dba7aafe /app/views/admin/links/index.html.haml | |
parent | 77e849b66719f5e86762eff4ae23340dab1b32fa (diff) | |
download | thoughts-c650bee03937bd0e741e701f1fe0bfe5cf8e040e.tar.gz thoughts-c650bee03937bd0e741e701f1fe0bfe5cf8e040e.tar.bz2 thoughts-c650bee03937bd0e741e701f1fe0bfe5cf8e040e.zip |
Add link entry type
Diffstat (limited to 'app/views/admin/links/index.html.haml')
-rw-r--r-- | app/views/admin/links/index.html.haml | 14 |
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 | ||