add sport icon in html output

This commit is contained in:
Fabrice Lamant
2024-07-21 09:28:11 +01:00
parent 84684542cf
commit 5bc1d66846
2 changed files with 46 additions and 46 deletions

View File

@ -154,7 +154,7 @@ const generateOutputPage = () => {
html.push("<table>");
SPORTS.map((sport) => {
html.push("<tr class=\"even:bg-slate-200\">");
html.push(`<th class="font-bold text-left">${sport.name}</td>`);
html.push(`<th class="font-bold text-left">${getSportIcon(sport.key)} ${sport.name}</td>`);
html.push("<td>");
html.push(`<a href="${sport.key}/general.ics" class="${linkClass}">Full schedule</a>`);
sport.NOCS.sort().forEach((noc) => {