blob: d4ddb0e989e0cc87376819a2df163325d69c13b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<h1><%= @tournament.name %> - Matches</h1>
<table class="table">
<thead>
<tr>
<th>Status</th>
<th>Name</th>
<th>Winner</th>
<th></th>
</tr>
</thead>
<tbody class="table-hover">
<% @tournament.matches.each do |match| %>
<tr>
<td><%= match.status %></td>
<td><%= match.id%></td>
<td><%= match.name %></td>
<td><%= link_to "Show", tournament_match_path(@tournament, match) %>
</tr>
<% end %>
</tbody>
</table>
<br>
<SVG version="1.1"
baseProfile="full"
width="<%= 300 * @matches.count / 2 + 50 %>" height="<%= 200 * @matches.count + 50 %>"
xmlns="http://www.w3.org/2000/svg">
<% (1..@matches.count).each do |i| %>
<g class="svg-match">
<rect rx="10"
</g>
<% end %>
</SVG>
|