Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sponsors/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_benefit_split(self, obj: SponsorshipPackage) -> str:
for i, (name, pct) in enumerate(split):
pct_str = f"{pct:.0f}%"
widths.append(pct_str)
spans.append(f"<span title='{name}' style='background-color:var(--{colors[i]})'>{pct_str}</span>")
spans.append(f"<span title='{name}' style='background-color:{colors[i]}'>{pct_str}</span>")
# define a style that will show our span elements like a single horizontal stacked bar chart
style = f'color:#fff;text-align:center;cursor:pointer;display:grid;grid-template-columns:{" ".join(widths)}'
# wrap it all up and put a bow on it
Expand Down