fix: Add data-label attributes for responsive table conversion on mobile

This commit is contained in:
2026-03-27 13:24:03 -07:00
parent 8074473f1b
commit 856fcf16ba
2 changed files with 13 additions and 13 deletions
+8 -8
View File
@@ -19,14 +19,14 @@
<tbody>
<% matches.each do |match| %>
<tr>
<td><%= match.id %></td>
<td><%= match.played_at&.strftime('%Y-%m-%d %H:%M') %></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>
<td data-label="ID"><%= match.id %></td>
<td data-label="Date"><%= match.played_at&.strftime('%Y-%m-%d %H:%M') %></td>
<td data-label="Team 1"><%= match.team_1_p1_name %> + <%= match.team_1_p2_name %></td>
<td data-label="Score 1"><strong><%= match.team_1_score %></strong></td>
<td data-label="Team 2"><%= match.team_2_p1_name %> + <%= match.team_2_p2_name %></td>
<td data-label="Score 2"><strong><%= match.team_2_score %></strong></td>
<td data-label="Status"><%= match.status %></td>
<td data-label="Actions">
<a href="/admin/matches/<%= match.id %>/edit">Edit</a>
</td>
</tr>