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
@@ -1,3 +1,4 @@
|
||||
import { medal } from "./medal.js";
|
||||
export function renderRaceFormatField(labelKey, hintKey, controlHtml, options = {}, { t }) {
|
||||
const extraClass = options.checkbox ? " field-card-checkbox" : "";
|
||||
return `
|
||||
@@ -215,7 +216,7 @@ export function renderRaceStandingsTable(rows, emptyLabel, { t, renderTable, esc
|
||||
rows.map(
|
||||
(row) => `
|
||||
<tr>
|
||||
<td>${row.rank}</td>
|
||||
<td>${medal(row.rank)}</td>
|
||||
<td>${escapeHtml(row.driverName || t("common.unknown_driver"))}</td>
|
||||
<td>
|
||||
<div class="table-primary">${escapeHtml(row.score || "-")}</div>
|
||||
|
||||
Reference in new issue
Block a user