League Information

This commit is contained in:
Lucas Patenaude
2024-04-11 09:04:41 -06:00
parent 637b9002e7
commit c88b8b3577
3 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
function redirectToLeaguePage(leagueName) {
function redirectToLeaguePage(leagueName, leagueID) {
// Append the league name to the URL
var url = "/league/" + leagueName.toLowerCase().replace(/\s+/g, '-');

View File

@@ -30,12 +30,14 @@ const fetchleagueesData = async (req, res, next) => {
table: {
league_position: league.standings.table.position,
team_id: league.standings.table.team.id,
team_name: league.standings.table.team.name,
team_crest: league.standings.table.team.crest
},
},
}));
// Concatenate leaguees data to allleaguees array
allLeaguees = allLeaguees.concat(leagues);
allLeagues = allLeagues.concat(leagues);
}
// Attach all leaguees data to res.locals

View File

@@ -10,9 +10,7 @@
<!-- Container to display league table <- split 50% -->
<div class="container" id="league-table-container">
{{#each league}}
{{> navigation-bar/scoreboard-header/game-card}}
{{/each}}
</div>