summaryrefslogtreecommitdiff
path: root/views/stats.pug
diff options
context:
space:
mode:
Diffstat (limited to 'views/stats.pug')
-rw-r--r--views/stats.pug5
1 files changed, 2 insertions, 3 deletions
diff --git a/views/stats.pug b/views/stats.pug
index 6c8a268..ececb85 100644
--- a/views/stats.pug
+++ b/views/stats.pug
@@ -5,18 +5,17 @@ html
include head
title Game Statistics
style.
- table { min-width: auto; margin-bottom: 30px; }
+ table { margin-bottom: 30px; }
td:not(:first-child) { text-align: right; }
th:not(:first-child) { text-align: right; }
td:not(:first-child) { width: 50px; }
- td:first-child { width: 400px; }
body
include header
article
h1 Game Statistics
- function p(t,r) { return r > 0 ? Math.round(r*100/t) + "%" : "" }
each row in stats
- table
+ table.half.striped
thead
tr
th