Better UI

This commit is contained in:
2019-03-26 12:24:36 +01:00
parent f4587b307e
commit 14cb50e1d2
4 changed files with 36 additions and 30 deletions
+12 -9
View File
@@ -10,35 +10,38 @@ block content
th
for ai in ais
th.has-text-centered= ai.name
th.has-text-centered.has-text-success ✓
th.has-text-centered.has-text-danger ✗
for ai1 in ais
tr
th.has-text-centered= ai1.name
for ai2 in ais
if ai1.name == ai2.name
td
else if battles[ai1.name + "/" + ai2.name] > 50
else if battles[ai1.name + "/" + ai2.name] > battles[ai2.name + "/" + ai1.name]
td.has-text-success= battles[ai1.name + "/" + ai2.name]
else if battles[ai1.name + "/" + ai2.name] < 50
else if battles[ai1.name + "/" + ai2.name] < battles[ai2.name + "/" + ai1.name]
td.has-text-danger= battles[ai1.name + "/" + ai2.name]
else
td= battles[ai1.name + "/" + ai2.name]
td.has-text-centered
strong= 0
td.has-text-centered
strong= 0
.column.is-narrow.is-desktop
table.table.is-bordered.is-striped.is-hoverable
tr
th.has-text-centered AI
th.has-text-centered Victories
th.has-text-centered Nulls
th.has-text-centered Defeats
th.has-text-centered Score
for ai in sortedAis
tr
td.has-text-centered
strong= ai.name
td.has-text-centered
strong= ai.victories - ai.defeats
strong= ai.victories
td.has-text-centered
strong= ai.nulls
td.has-text-centered
strong= ai.defeats
td.has-text-centered
strong= ai.score