From 2fddc41dacced1667e229a14a7a000b9ccc6ea0c Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 27 Mar 2019 09:12:49 +0100 Subject: [PATCH] Better tables --- views/index.pug | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/views/index.pug b/views/index.pug index 39ab0ad..15eaeb4 100644 --- a/views/index.pug +++ b/views/index.pug @@ -7,6 +7,29 @@ block content .columns.is-centered .column.is-narrow.is-desktop 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 .column.is-narrow.is-desktop 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] else td.has-text-centered= data.battles[ai1.name + "/" + ai2.name] - .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 All battles