<template lang="pug">
div
- table
+ table(v-if="challenges.length > 0")
thead
tr
th {{ st.tr["Variant"] }}
td {{ withWho(c) }}
td {{ c.cadence }}
td(:class="getRandomnessClass(c)")
+ p(v-else)
+ | {{ st.tr["No challenges found :( Click on 'New game'!"] }}
</template>
<script>
</script>
<style lang="sass" scoped>
+p
+ text-align: center
+ font-weight: bold
+
// NOTE: the style applied to <tr> element doesn't work
tr.fromyou > td
font-style: italic
<template lang="pug">
div
- table.game-list
+ table.game-list(v-if="games.length > 0")
thead
tr
th {{ st.tr["Variant"] }}
@click="deleteGame(g,$event)"
)
| {{ g.score }}
+ p(v-else)
+ | {{ st.tr["No games found :( Send a challenge!"] }}
</template>
<script>
</script>
<style lang="sass" scoped>
+p
+ text-align: center
+ font-weight: bold
+
// NOTE: the style applied to <tr> element doesn't work
tr.my-turn > td
background-color: #fcd785
"New game": "New game",
"New problem": "New problem",
News: "News",
+ "No challenges found :( Click on 'New game'!": "No challenges found :( Click on 'New game'!",
+ "No games found :( Send a challenge!": "No games found :( Send a challenge!",
"No more problems": "No more problems",
"No subject. Send anyway?": "No subject. Send anyway?",
"Notifications by email": "Notifications by email",
"New game": "Nueva partida",
"New problem": "Nuevo problema",
News: "Noticias",
+ "No challenges found :( Click on 'New game'!": "No se encontró ningún desafío :( ¡Haz clic en 'Nueva partida'!",
+ "No games found :( Send a challenge!": "No se encontró partidas :( ¡Envía un desafío!",
"No more problems": "No mas problemas",
"No subject. Send anyway?": "Sin asunto. ¿Enviar sin embargo?",
"Notifications by email": "Notificaciones por email",
"New game": "Nouvelle partie",
"New problem": "Nouveau problème",
News: "Nouvelles",
+ "No challenges found :( Click on 'New game'!": "Aucun défi trouvé :( Cliquez sur 'Nouvelle partie' !",
+ "No games found :( Send a challenge!": "Aucune partie trouvée :( Envoyez un défi !",
"No more problems": "Plus de problèmes",
"No subject. Send anyway?": "Pas de sujet. Envoyer quand-même ??",
"Notifications by email": "Notifications par email",