summaryrefslogtreecommitdiff
path: root/views/user_stats.pug
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-02-11 14:52:28 +0100
committerTor Andersson <tor@ccxvii.net>2022-02-15 12:18:30 +0100
commit87eb7db7edac63fb82f0f144d08a12c409609800 (patch)
treef8a6f8600a9f7909df07f640e2f09c9a6764a7f6 /views/user_stats.pug
parentb967bfc72c54ceafe800e44568aa4fa20fabd675 (diff)
downloadserver-87eb7db7edac63fb82f0f144d08a12c409609800.tar.gz
Add explicit thead/tbody/tfoot tags to tables.
Diffstat (limited to 'views/user_stats.pug')
-rw-r--r--views/user_stats.pug49
1 files changed, 23 insertions, 26 deletions
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) + "%"