fix: Update admin templates with player names and edit links
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user