From b6018ad11156d8b38a87dc682064495cd788608c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Mar 2019 15:00:38 -0400 Subject: Game started/finished now displayed in table --- app/views/games/index.html.haml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'app/views/games') 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 @@ %th Progress - @games.each do |game| %tr{ class: cycle("even", "odd") } - %td= game.title + %td + %span.game-title= game.title + - unless game.started_on.blank? + %span.game-started + Started on + %time= game.started_on + - unless game.finished_on.blank? + %span.game-finished + Finished on + %time= game.finished_on %td= game.status %td= game.score %td.game-progress= simple_format game.progress -- cgit 1.4.1