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=a350c705b2fb88c3c9aa337a8ff5c65373ab261e;hpb=303ad63c7d3ff6566fd0d4523e5970acfbfdd933;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index a350c705..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["With"] }}
th {{ st.tr["Cadence"] }}
+ th {{ st.tr["Options"] }}
tbody
tr(
v-for="c in sortedChallenges"
@@ -15,6 +16,9 @@ div
td {{ c.vname }}
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'!"] }}