Commit | Line | Data |
---|---|---|
85e5b5c1 BA |
1 | <template lang="pug"> |
2 | table | |
3 | tr | |
03608482 | 4 | th Variant |
85e5b5c1 BA |
5 | th From |
6 | th To | |
7 | th Cadence | |
85e5b5c1 | 8 | tr(v-for="c in challenges" @click="$emit('click-challenge',c)") |
5578a7bf | 9 | td {{ c.variant.name }} |
85e5b5c1 | 10 | td {{ c.from.name }} |
03608482 | 11 | td(v-if="c.to[0].id > 0") |
85e5b5c1 | 12 | span(v-for="p in c.to") {{ p.name }} |
03608482 BA |
13 | td(v-else) {{ c.nbPlayers - 1 }} player{{ c.nbPlayers >= 3 ? 's' : '' }} |
14 | td {{ c.timeControl }} | |
85e5b5c1 BA |
15 | </template> |
16 | ||
17 | <script> | |
18 | export default { | |
19 | name: "my-challenge-list", | |
20 | props: ["challenges"], | |
85e5b5c1 | 21 | }; |
85e5b5c1 BA |
22 | </script> |
23 | ||
24 | <style lang="sass"> | |
25 | // TODO: affichage bizarre sur petits écrans <=767px | |
26 | </style> |