summaryrefslogtreecommitdiff
path: root/app/views/matches/index.html.erb
diff options
context:
space:
mode:
authorTomer Kimia <tkimia@purdue.edu>2014-04-01 17:14:05 -0400
committerTomer Kimia <tkimia@purdue.edu>2014-04-01 17:14:05 -0400
commit0867bc68749873aa131c0f3b273771b5f70ae778 (patch)
treed29a091054b4ac659af77072f55be1e7b1bf69cf /app/views/matches/index.html.erb
parentcd6b94cfc989800d65acc0fbceeebe35da5be4af (diff)
players can now leave tournaments
Diffstat (limited to 'app/views/matches/index.html.erb')
-rw-r--r--app/views/matches/index.html.erb17
1 files changed, 15 insertions, 2 deletions
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb
index d862d57..f1019ec 100644
--- a/app/views/matches/index.html.erb
+++ b/app/views/matches/index.html.erb
@@ -1,5 +1,6 @@
-<h1>Listing matches</h1>
+<h1><%= @tournament.name %> Matches</h1>
+<!--
<table>
<thead>
<tr>
@@ -30,5 +31,17 @@
</table>
<br>
+-->
-<%= link_to 'New Match', new_tournament_match_path %>
+<SVG version="1.1"
+ baseProfile="full"
+ width="<%= 300 * @matches.count / 2 + 50 %>" height="<%= 200 * @matches.count + 50 %>"
+ xmlns="http://www.w3.org/2000/svg">
+
+ <% @matches.each do |tournament | %>
+ <g class="svg-match" >
+
+ </g>
+ <% end %>
+
+</SVG> \ No newline at end of file