diff options
Diffstat (limited to 'app/views/games')
-rw-r--r-- | app/views/games/index.html.haml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/app/views/games/index.html.haml b/app/views/games/index.html.haml index 64fbfd9..f7e7a44 100644 --- a/app/views/games/index.html.haml +++ b/app/views/games/index.html.haml | |||
@@ -8,7 +8,16 @@ | |||
8 | %th Progress | 8 | %th Progress |
9 | - @games.each do |game| | 9 | - @games.each do |game| |
10 | %tr{ class: cycle("even", "odd") } | 10 | %tr{ class: cycle("even", "odd") } |
11 | %td= game.title | 11 | %td |
12 | %span.game-title= game.title | ||
13 | - unless game.started_on.blank? | ||
14 | %span.game-started | ||
15 | Started on | ||
16 | %time= game.started_on | ||
17 | - unless game.finished_on.blank? | ||
18 | %span.game-finished | ||
19 | Finished on | ||
20 | %time= game.finished_on | ||
12 | %td= game.status | 21 | %td= game.status |
13 | %td= game.score | 22 | %td= game.score |
14 | %td.game-progress= simple_format game.progress | 23 | %td.game-progress= simple_format game.progress |