//- vim:ts=4:sw=4:
doctype html
html
head
include head
title Game Statistics
style.
table { margin-bottom: 30px; }
td:not(:first-child) { text-align: right; }
th:not(:first-child) { text-align: right; }
td:not(:first-child) { width: 50px; }
body
include header
article
h1 Game Statistics
- function p(t,r) { return r > 0 ? Math.round(r*100/t) + "%" : "" }
each row in stats
table.half.striped
thead
tr
th
a.black(href="/"+row.title_id)= row.title_name
unless row.scenario === "Standard"
| – #{row.scenario}
th= row.total
tbody
- for (let i=0; i