From 856fcf16ba5ab3f430894391088615832285fa2e Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Fri, 27 Mar 2026 13:24:03 -0700 Subject: [PATCH] fix: Add data-label attributes for responsive table conversion on mobile --- app/templates/admin/index.html.erb | 10 +++++----- app/templates/admin/matches/index.html.erb | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/templates/admin/index.html.erb b/app/templates/admin/index.html.erb index 44697bf..e8e788c 100644 --- a/app/templates/admin/index.html.erb +++ b/app/templates/admin/index.html.erb @@ -64,11 +64,11 @@ <% recent_matches.each do |match| %> - <%= match[:id] %> - <%= match[:team_1].map { |p| p[:name] }.join(' + ') %> - <%= match[:score] %> - <%= match[:team_2].map { |p| p[:name] }.join(' + ') %> - <%= match[:played_at]&.strftime('%Y-%m-%d') || '-' %> + <%= match[:id] %> + <%= match[:team_1].map { |p| p[:name] }.join(' + ') %> + <%= match[:score] %> + <%= match[:team_2].map { |p| p[:name] }.join(' + ') %> + <%= match[:played_at]&.strftime('%Y-%m-%d') || '-' %> <% end %> diff --git a/app/templates/admin/matches/index.html.erb b/app/templates/admin/matches/index.html.erb index ba4466a..d2842a6 100644 --- a/app/templates/admin/matches/index.html.erb +++ b/app/templates/admin/matches/index.html.erb @@ -19,14 +19,14 @@ <% matches.each do |match| %> - <%= match.id %> - <%= match.played_at&.strftime('%Y-%m-%d %H:%M') %> - <%= match.team_1_p1_name %> + <%= match.team_1_p2_name %> - <%= match.team_1_score %> - <%= match.team_2_p1_name %> + <%= match.team_2_p2_name %> - <%= match.team_2_score %> - <%= match.status %> - + <%= match.id %> + <%= match.played_at&.strftime('%Y-%m-%d %H:%M') %> + <%= match.team_1_p1_name %> + <%= match.team_1_p2_name %> + <%= match.team_1_score %> + <%= match.team_2_p1_name %> + <%= match.team_2_p2_name %> + <%= match.team_2_score %> + <%= match.status %> + Edit