fix: Update admin templates with player names and edit links

This commit is contained in:
2026-03-27 13:10:17 -07:00
parent 1d3f128cd5
commit cbd552e3fd
2 changed files with 27 additions and 5 deletions
+8 -4
View File
@@ -13,6 +13,7 @@
<th>Team 2</th>
<th>Score</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@@ -20,11 +21,14 @@
<tr>
<td><%= match.id %></td>
<td><%= match.played_at&.strftime('%Y-%m-%d %H:%M') %></td>
<td><%= match.team_1_p1_id %>/<%= match.team_1_p2_id %></td>
<td><%= match.team_1_score %></td>
<td><%= match.team_2_p1_id %>/<%= match.team_2_p2_id %></td>
<td><%= match.team_2_score %></td>
<td><%= match.team_1_p1_name %> + <%= match.team_1_p2_name %></td>
<td><strong><%= match.team_1_score %></strong></td>
<td><%= match.team_2_p1_name %> + <%= match.team_2_p2_name %></td>
<td><strong><%= match.team_2_score %></strong></td>
<td><%= match.status %></td>
<td>
<a href="/admin/matches/<%= match.id %>/edit">Edit</a>
</td>
</tr>
<% end %>
</tbody>