feat(results): gold, silver and bronze medals for the top three in PDF, printouts and result tables (1.73.0)
This commit is contained in:
1 parent
7c25f23ad0
commit
41043a990d
12 files changed
+72
-12
No files matched your search
+2
-1
@@ -1,3 +1,4 @@
|
||||
import { medal } from "./medal.js";
|
||||
// "Series" page: create a series/cup, pick its classes and races (or create the races in one
|
||||
// go from a list of dates), set the points table and how many results count, and follow the
|
||||
// standings per class - printable and exportable as PDF. Scoring lives in series_logic.js.
|
||||
@@ -183,7 +184,7 @@ function renderStandingsTable(table, { t, escapeHtml }) {
|
||||
${table.rows.length ? `
|
||||
<div class="table-wrap"><table class="series-table">
|
||||
<thead><tr><th>${t("table.pos")}</th><th>${t("table.driver")}</th>${head}<th>${t("series.starts")}</th><th>${t("series.total")}</th></tr></thead>
|
||||
<tbody>${table.rows.map((row) => `<tr><td>${row.rank}</td><td>${escapeHtml(row.driverName)}</td>${cells(row)}<td>${row.starts}</td><td><strong>${row.total}</strong></td></tr>`).join("")}</tbody>
|
||||
<tbody>${table.rows.map((row) => `<tr><td>${medal(row.rank)}</td><td>${escapeHtml(row.driverName)}</td>${cells(row)}<td>${row.starts}</td><td><strong>${row.total}</strong></td></tr>`).join("")}</tbody>
|
||||
</table></div>` : `<p class="hint">${t("series.no_results")}</p>`}
|
||||
</section>`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user