diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-03-13 15:00:38 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-03-13 15:00:38 -0400 |
commit | b6018ad11156d8b38a87dc682064495cd788608c (patch) | |
tree | c947861866a97bf5395039a3e7be57aee45494bd /app/views | |
parent | bcf6445d92f1a57dff0b97bd9309f40b70088448 (diff) | |
download | thoughts-b6018ad11156d8b38a87dc682064495cd788608c.tar.gz thoughts-b6018ad11156d8b38a87dc682064495cd788608c.tar.bz2 thoughts-b6018ad11156d8b38a87dc682064495cd788608c.zip |
Game started/finished now displayed in table
Diffstat (limited to 'app/views')
-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 |