Split- och depåstatistik är implementerad
This commit is contained in:
@@ -40,12 +40,23 @@ export function renderEventManagerMarkup(context) {
|
||||
buildQualifyingStandings,
|
||||
buildFinalStandings,
|
||||
renderTeamRaceStandings,
|
||||
renderSessionChannelAnalysis,
|
||||
renderFinalMatrix,
|
||||
editingTeam,
|
||||
editingSession,
|
||||
getModeLabel,
|
||||
renderTable,
|
||||
} = context;
|
||||
const sessionChannelMarkup = sessions
|
||||
.map((session) => ({ session, markup: renderSessionChannelAnalysis(session) }))
|
||||
.filter((entry) => entry.markup)
|
||||
.map(({ session, markup }) => `
|
||||
<article class="team-standings-block">
|
||||
<h4>${escapeHtml(session.name)} • ${escapeHtml(getSessionTypeLabel(session.type))}</h4>
|
||||
${markup}
|
||||
</article>
|
||||
`)
|
||||
.join("");
|
||||
return `
|
||||
<section class="panel" id="manage-session-plan">
|
||||
<div class="panel-header">
|
||||
@@ -698,6 +709,16 @@ export function renderEventManagerMarkup(context) {
|
||||
</div>
|
||||
</section>
|
||||
|
||||
${sessionChannelMarkup ? `
|
||||
<section class="panel mt-16">
|
||||
<div class="panel-header"><h3>${t("timing.channel_analysis")}</h3></div>
|
||||
<div class="panel-body">
|
||||
<p class="hint">${t("timing.channel_analysis_race_hint")}</p>
|
||||
${sessionChannelMarkup}
|
||||
</div>
|
||||
</section>
|
||||
` : ""}
|
||||
|
||||
<section class="panel mt-16">
|
||||
<div class="panel-header"><h3>${t("events.final_matrix")}</h3></div>
|
||||
<div class="panel-body">
|
||||
|
||||
Reference in New Issue
Block a user