feat: show cutoff rating threshold in player history accordion (#21)

This commit is contained in:
Samuel Enocsson
2026-05-25 11:12:01 +02:00
parent 9138299ae0
commit 98a6c6be2e
7 changed files with 38 additions and 9 deletions
+6
View File
@@ -42,6 +42,12 @@ const chartPdgaNumber = hasPlayer ? player.pdgaNumber : pdgaNumber;
<dd><%= player.excludedRoundsCount %></dd>
</div>
<% } %>
<% if (player.cutoffRating != null && player.rating) { %>
<div>
<dt>Cutoff rating</dt>
<dd><%= player.cutoffRating %></dd>
</div>
<% } %>
</dl>
</div>
<% } %>
+6
View File
@@ -130,6 +130,12 @@ function renderSparkline(values, opts) {
<dd><%= player.excludedRoundsCount %></dd>
</div>
<% } %>
<% if (player.cutoffRating != null && player.rating) { %>
<div>
<dt>Cutoff rating</dt>
<dd><%= player.cutoffRating %></dd>
</div>
<% } %>
</dl>
</div>
</div>