diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-03 18:03:25 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-03 18:03:25 -0400 |
commit | effe4608e808a385bb912fccac26381d0bd0c95a (patch) | |
tree | 68f45ec586be9a80c4d3cd74938db65c0d73a9f1 /app/views | |
parent | 0c1583c0b31504dfdbbbec3e6dcc240acb059891 (diff) |
matches table is back, and a lot of things are fixed
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/matches/index.html.erb | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index babf45e..d4ddb0e 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -1,28 +1,23 @@ -<h1><%= @tournament.name %> Matches</h1> +<h1><%= @tournament.name %> - Matches</h1> -<table> +<table class="table"> <thead> <tr> <th>Status</th> - <th>Tournament</th> <th>Name</th> <th>Winner</th> - <th>Remote</th> - <th></th> - <th></th> <th></th> </tr> </thead> - <tbody> + <tbody class="table-hover"> <% @tournament.matches.each do |match| %> <tr> - <td><%= match.tournament.id %></td> <td><%= match.status %></td> - <td><%= match.tournament %></td> + <td><%= match.id%></td> <td><%= match.name %></td> - <td><%= match.winner %></td> + <td><%= link_to "Show", tournament_match_path(@tournament, match) %> </tr> <% end %> </tbody> @@ -37,7 +32,8 @@ xmlns="http://www.w3.org/2000/svg"> <% (1..@matches.count).each do |i| %> - <g class="svg-match" > + <g class="svg-match"> + <rect rx="10" </g> <% end %> |