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