Add game links to schedule view
This commit is contained in:
parent
5b26093f5e
commit
49506ec779
@ -32,7 +32,13 @@
|
||||
{{ game.away_team.abbrev }}
|
||||
</RouterLink>
|
||||
</td>
|
||||
<td>{{ game.away_score || game.home_score ? `${game.away_score}-${game.home_score}` : '@' }}</td>
|
||||
<td>
|
||||
<RouterLink v-if="game.away_score || game.home_score"
|
||||
:to="{ name: 'games', params: { seasonNumber: seasonNumber, weekNumber: selectedWeekNumber, gameNumber: game.game_num, team1Abbreviation: game.away_team.abbrev, team2Abbreviation: game.home_team.abbrev } }">
|
||||
{{ `${game.away_score}-${game.home_score}` }}
|
||||
</RouterLink>
|
||||
<template v-else>@</template>
|
||||
</td>
|
||||
<td>
|
||||
<RouterLink
|
||||
:to="{ name: 'team', params: { seasonNumber: seasonNumber, teamAbbreviation: game.home_team.abbrev } }">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user