X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FChallengeList.vue;h=b3c43e2a803751b0b602e2e085278a01a515d719;hb=8e44d3a3982a536240ae576df0eafcc8a16f23c5;hp=07aa326b2616f61a09fe8c71136cf1ad753a90c9;hpb=7aa548e72ba8a4af4e2c7f63e7723ad10d2cd3a4;p=vchess.git
diff --git a/client/src/components/ChallengeList.vue b/client/src/components/ChallengeList.vue
index 07aa326b..b3c43e2a 100644
--- a/client/src/components/ChallengeList.vue
+++ b/client/src/components/ChallengeList.vue
@@ -1,24 +1,23 @@
div
table
- tr
- th Variant
- th From
- th To
- th Cadence
- tr(v-for="c in sortedChallenges" @click="$emit('click-challenge',c)")
- td {{ c.vname }}
- td {{ c.from.name }}
- td {{ c.to }}
- td {{ c.timeControl }}
+ thead
+ tr
+ th {{ st.tr["Variant"] }}
+ th {{ st.tr["From"] }}
+ th {{ st.tr["Cadence"] }}
+ tbody
+ tr(v-for="c in sortedChallenges" :class="{toyou:c.priority==1,fromyou:c.priority==2}" @click="$emit('click-challenge',c)")
+ td {{ c.vname }}
+ td {{ c.from.name || "@nonymous" }}
+ td {{ c.cadence }}
-