From 87eb7db7edac63fb82f0f144d08a12c409609800 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 11 Feb 2022 14:52:28 +0100 Subject: Add explicit thead/tbody/tfoot tags to tables. --- views/user_stats.pug | 49 +++++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) (limited to 'views/user_stats.pug') diff --git a/views/user_stats.pug b/views/user_stats.pug index 865e7fd..a947b64 100644 --- a/views/user_stats.pug +++ b/views/user_stats.pug @@ -13,30 +13,27 @@ html h1 Stats for #{who.name} table(style="min-width:auto") - tr - th Title - th Scenario - th Role - th Played - th Won - each row in stats + thead tr - - all_won += row.won - - all_total += row.total - td= row.title_name - td= row.scenario - td= row.role - td= row.total - td= Math.round(row.won*100/row.total) + "%" - tr - th - th - th - th - th - tr - td - td - td - td= all_total - td= Math.round(all_won*100/all_total) + "%" + th Title + th Scenario + th Role + th Played + th Won + tbody + each row in stats + tr + - all_won += row.won + - all_total += row.total + td= row.title_name + td= row.scenario + td= row.role + td= row.total + td= Math.round(row.won*100/row.total) + "%" + tfoot + tr + td + td + td + td= all_total + td= Math.round(all_won*100/all_total) + "%" -- cgit v1.2.3