Tone the serves chip by openness, so co-ed Exploring reads as open
This commit is contained in:
+5
-1
@@ -110,7 +110,11 @@ def card(u):
|
|||||||
|
|
||||||
chips = [f'<span class="badge">{TYPE_LABEL.get(u["unit_type"], "Scouting")}</span>']
|
chips = [f'<span class="badge">{TYPE_LABEL.get(u["unit_type"], "Scouting")}</span>']
|
||||||
if u["serves"] and u["serves"] in SERVES_LABEL:
|
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>')
|
chips.append(f'<span class="chip {tone}">{SERVES_LABEL[u["serves"]]}</span>')
|
||||||
|
|
||||||
lines = []
|
lines = []
|
||||||
|
|||||||
Reference in New Issue
Block a user