diff options
Diffstat (limited to 'app')
-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 |