diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/main/games.scss | 4 | ||||
-rw-r--r-- | app/controllers/games_controller.rb | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/stylesheets/main/games.scss b/app/assets/stylesheets/main/games.scss index 5c39701..db495e2 100644 --- a/app/assets/stylesheets/main/games.scss +++ b/app/assets/stylesheets/main/games.scss | |||
@@ -6,11 +6,11 @@ | |||
6 | width: 100%; | 6 | width: 100%; |
7 | 7 | ||
8 | tr { | 8 | tr { |
9 | &.even { | 9 | &.odd { |
10 | background-color: #fff; | 10 | background-color: #fff; |
11 | } | 11 | } |
12 | 12 | ||
13 | &.odd { | 13 | &.even { |
14 | background-color: #edf; | 14 | background-color: #edf; |
15 | } | 15 | } |
16 | } | 16 | } |
diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index 7d95b2c..490e0b0 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb | |||
@@ -1,5 +1,9 @@ | |||
1 | class GamesController < ApplicationController | 1 | class GamesController < ApplicationController |
2 | def index | 2 | def index |
3 | @games = Game.all | 3 | @games = Game.all |
4 | |||
5 | if params[:status] | ||
6 | @games = @games.where(status: params[:status]) | ||
7 | end | ||
4 | end | 8 | end |
5 | end | 9 | end |