X-Git-Url: https://git.auder.net/variants/Baroque/current/gitweb.js?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FGameList.vue;h=4233a01bb794aa3777f64d2079a5144f6f658243;hb=4f8871051c030acd51172b73cd20aedce687c2a8;hp=a90905507b02d9642afc9e9b2ecc36dc9488f47e;hpb=603b8a8b4a854efb168953da70e7b43ae99b50d9;p=vchess.git
diff --git a/client/src/components/GameList.vue b/client/src/components/GameList.vue
index a9090550..4233a01b 100644
--- a/client/src/components/GameList.vue
+++ b/client/src/components/GameList.vue
@@ -1,19 +1,21 @@
div
table
- tr
- th Variant
- th White
- th Black
- th Time control
- th(v-if="showResult") Result
- tr(v-for="g in sortedGames" @click="$emit('show-game',g)"
- :class="{'my-turn': g.myTurn}")
- td {{ g.vname }}
- td {{ g.players[0].name || "@nonymous" }}
- td {{ g.players[1].name || "@nonymous" }}
- td {{ g.timeControl }}
- td(v-if="showResult") {{ g.score }}
+ thead
+ tr
+ th Variant
+ th White
+ th Black
+ th Time control
+ th(v-if="showResult") Result
+ tbody
+ tr(v-for="g in sortedGames" @click="$emit('show-game',g)"
+ :class="{'my-turn': g.myTurn}")
+ td(data-label="Variant") {{ g.vname }}
+ td(data-label="White") {{ g.players[0].name || "@nonymous" }}
+ td(data-label="Black") {{ g.players[1].name || "@nonymous" }}
+ td(data-label="Time control") {{ g.timeControl }}
+ td(v-if="showResult" data-label="Result") {{ g.score }}