X-Git-Url: https://git.auder.net/images/pieces/bundles/framework/css/body.css?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=cf4565ad348e47e3cdfe6ee5418345320857fa8f;hb=3d9745ae10ba867e4c1ec6e848db29c5e293420b;hp=ed490671db3ce1a4c028f6d84784edc826c73637;hpb=910d631b73cad5ffef1b4461157b704e7e7057d8;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index ed490671..cf4565ad 100644
--- a/client/src/components/ChallengeList.vue
+++ b/client/src/components/ChallengeList.vue
@@ -1,11 +1,12 @@
div
- table
+ table(v-if="challenges.length > 0")
thead
tr
th {{ st.tr["Variant"] }}
- th {{ st.tr["From"] }}
+ th {{ st.tr["With"] }}
th {{ st.tr["Cadence"] }}
+ th {{ st.tr["Options"] }}
tbody
tr(
v-for="c in sortedChallenges"
@@ -13,8 +14,11 @@ div
@click="$emit('click-challenge',c)"
)
td {{ c.vname }}
- td {{ c.from.name || "@nonymous" }}
+ td {{ withWho(c) }}
td {{ c.cadence }}
+ td(:class="getRandomnessClass(c)") {{ c.options.abridged || '' }}
+ p(v-else)
+ | {{ st.tr["No challenges found :( Click on 'New game'!"] }}