summaryrefslogtreecommitdiff
path: root/app/views/tournaments/index.html.erb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 19:47:20 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 19:47:20 -0500
commit706392b7c4520382ddd8f827b31205c6b71f5320 (patch)
tree55444920bb49c5cc104e919737ebcda44eb45321 /app/views/tournaments/index.html.erb
parenteebd00ba4692a6a285c9807705331ab924ce225f (diff)
parentd72452a5965c0df32a13053ae86bcd529fc0fc9e (diff)
Merge branch 'clean'
Conflicts: app/controllers/tournaments_controller.rb app/views/teams/show.html.erb app/views/tournaments/index.html.erb config/routes.rb
Diffstat (limited to 'app/views/tournaments/index.html.erb')
-rw-r--r--app/views/tournaments/index.html.erb24
1 files changed, 19 insertions, 5 deletions
diff --git a/app/views/tournaments/index.html.erb b/app/views/tournaments/index.html.erb
index 26d0643..3d54b8c 100644
--- a/app/views/tournaments/index.html.erb
+++ b/app/views/tournaments/index.html.erb
@@ -3,17 +3,31 @@
<table>
<thead>
<tr>
- <th>Tournament ID</th>
- <th>Show Tournament</th>
- <th>Edit Tournament</th>
- <th>Delete Tournament</th>
+ <th>Game</th>
+ <th>Min players per team</th>
+ <th>Max players per team</th>
+ <th>Min teams per match</th>
+ <th>Max teams per match</th>
+ <th>Set rounds</th>
+ <th>Randomized teams</th>
+ <th>Status</th>
+ <th></th>
+ <th></th>
+ <th></th>
</tr>
</thead>
<tbody>
<% @tournaments.each do |tournament| %>
<tr>
- <td><%= tournament.id %></td>
+ <td><%= tournament.game %></td>
+ <td><%= tournament.min_players_per_team %></td>
+ <td><%= tournament.max_players_per_team %></td>
+ <td><%= tournament.min_teams_per_match %></td>
+ <td><%= tournament.max_teams_per_match %></td>
+ <td><%= tournament.set_rounds %></td>
+ <td><%= tournament.randomized_teams %></td>
+ <td><%= tournament.status %></td>
<td><%= link_to 'Show', tournament %></td>
<td><%= link_to 'Edit', edit_tournament_path(tournament) %></td>
<td><%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' } %></td>