X-Git-Url: https://git.auder.net/doc/index.css?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=095c09666740fd1821fcbc5896f058aff08a9cf8;hb=602d6befd30793111d3fda6e733f73e08d8b7a30;hp=a52e0cae57ee7fdb4fe39580759790a09b5be2d9;hpb=85e5b5c1e6192a134fa69182e8c077605fdb969f;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index a52e0cae..095c0966 100644
--- a/client/src/components/ChallengeList.vue
+++ b/client/src/components/ChallengeList.vue
@@ -1,36 +1,44 @@
-table
- tr
- th(v-if="showVariant") Variant
- th From
- th To
- th Cadence
- th(v-if="showNbPlayers") Number of players
- tr(v-for="c in challenges" @click="$emit('click-challenge',c)")
- td(v-if="showVariant") {{ c.variant }}
- td {{ c.from.name }}
- td
- span(v-for="p in c.to") {{ p.name }}
- td {{ c.mainTime }} + {{ c.increment }}
- td(v-if="showNbPlayers") {{ c.nbPlayers }}
+div
+ table
+ thead
+ tr
+ th {{ st.tr["Variant"] }}
+ th {{ st.tr["From"] }}
+ th {{ st.tr["To"] }}
+ th {{ st.tr["Time control"] }}
+ tbody
+ tr(v-for="c in sortedChallenges" @click="$emit('click-challenge',c)")
+ td(data-label="Variant") {{ c.vname }}
+ td(data-label="From") {{ c.from.name }}
+ td(data-label="To") {{ c.to }}
+ td(data-label="Cadence") {{ c.timeControl }}
-
-