Better tables

This commit is contained in:
Thomas Forgione 2019-03-27 09:12:49 +01:00
parent 42f104533b
commit 2fddc41dac
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 27 additions and 18 deletions

View File

@ -7,6 +7,29 @@ block content
.columns.is-centered .columns.is-centered
.column.is-narrow.is-desktop .column.is-narrow.is-desktop
h5.title.is-5 Some battles are running... h5.title.is-5 Some battles are running...
.columns.is-centered
.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 data.sortedAis
tr
td.has-text-centered
strong= ai.name
td.has-text-centered= ai.victories
td.has-text-centered= ai.nulls
td.has-text-centered= ai.defeats
td.has-text-centered
strong= ai.score
.columns.is-centered
.column.is-narrow
caption
strong Leaderboard
.columns.is-centered .columns.is-centered
.column.is-narrow.is-desktop .column.is-narrow.is-desktop
table.table.is-bordered.is-striped.is-narrow.is-hoverable table.table.is-bordered.is-striped.is-narrow.is-hoverable
@ -26,24 +49,10 @@ block content
td.has-text-centered.has-text-danger= data.battles[ai1.name + "/" + ai2.name] td.has-text-centered.has-text-danger= data.battles[ai1.name + "/" + ai2.name]
else else
td.has-text-centered= data.battles[ai1.name + "/" + ai2.name] td.has-text-centered= data.battles[ai1.name + "/" + ai2.name]
.column.is-narrow.is-desktop .columns.is-centered
table.table.is-bordered.is-striped.is-hoverable .column.is-narrow
tr caption
th.has-text-centered AI strong All battles
th.has-text-centered Victories
th.has-text-centered Nulls
th.has-text-centered Defeats
th.has-text-centered Score
for ai in data.sortedAis
tr
td.has-text-centered
strong= ai.name
td.has-text-centered= ai.victories
td.has-text-centered= ai.nulls
td.has-text-centered= ai.defeats
td.has-text-centered
strong= ai.score