diff options
Diffstat (limited to 'app/views/games')
| -rw-r--r-- | app/views/games/index.html.haml | 14 |
1 files changed, 14 insertions, 0 deletions
| diff --git a/app/views/games/index.html.haml b/app/views/games/index.html.haml new file mode 100644 index 0000000..64fbfd9 --- /dev/null +++ b/app/views/games/index.html.haml | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | - title "Games" | ||
| 2 | %h2 Games | ||
| 3 | %table#games-table | ||
| 4 | %tr | ||
| 5 | %th Title | ||
| 6 | %th Status | ||
| 7 | %th Score | ||
| 8 | %th Progress | ||
| 9 | - @games.each do |game| | ||
| 10 | %tr{ class: cycle("even", "odd") } | ||
| 11 | %td= game.title | ||
| 12 | %td= game.status | ||
| 13 | %td= game.score | ||
| 14 | %td.game-progress= simple_format game.progress | ||
