Tone the serves chip by openness, so co-ed Exploring reads as open

This commit is contained in:
Mike Wichers
2026-09-04 10:13:15 -04:00
parent 9a98c17913
commit 29afdd453d
+5 -1
View File
@@ -110,7 +110,11 @@ def card(u):
chips = [f'<span class="badge">{TYPE_LABEL.get(u["unit_type"], "Scouting")}</span>']
if u["serves"] and u["serves"] in SERVES_LABEL:
tone = "gold" if u["serves"] == "family" else "blue"
# Tone tracks who the unit is OPEN to, not the word it uses. Exploring
# posts and clubs are co-ed by design and have no "family" variant to
# be compared against, so colouring "coed" like a single-gender unit
# would make Club 254 look narrower than Pack 244 when it is not.
tone = "gold" if u["serves"] in ("family", "coed") else "blue"
chips.append(f'<span class="chip {tone}">{SERVES_LABEL[u["serves"]]}</span>')
lines = []