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 | |
| parent | bcf6445d92f1a57dff0b97bd9309f40b70088448 (diff) | |
| download | thoughts-b6018ad11156d8b38a87dc682064495cd788608c.tar.gz thoughts-b6018ad11156d8b38a87dc682064495cd788608c.tar.bz2 thoughts-b6018ad11156d8b38a87dc682064495cd788608c.zip | |
Game started/finished now displayed in table
| -rw-r--r-- | app/assets/stylesheets/main/games.scss | 11 | ||||
| -rw-r--r-- | app/views/games/index.html.haml | 11 |
2 files changed, 21 insertions, 1 deletions
| diff --git a/app/assets/stylesheets/main/games.scss b/app/assets/stylesheets/main/games.scss index db495e2..98aca43 100644 --- a/app/assets/stylesheets/main/games.scss +++ b/app/assets/stylesheets/main/games.scss | |||
| @@ -23,3 +23,14 @@ | |||
| 23 | .game-progress p { | 23 | .game-progress p { |
| 24 | margin: 0; | 24 | margin: 0; |
| 25 | } | 25 | } |
| 26 | |||
| 27 | .game-title { | ||
| 28 | display: block; | ||
| 29 | margin-bottom: 0.25em; | ||
| 30 | } | ||
| 31 | |||
| 32 | .game-started, .game-finished { | ||
| 33 | display: block; | ||
| 34 | font-size: 0.8em; | ||
| 35 | color: #777; | ||
| 36 | } | ||
| 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 |
