smrose / ps

Pattern Sphere application, part of the Public Sphere Project.
0 stars 0 forks source link

Per-pattern background colors in assessment are no longer set #16

Closed smrose closed 2 months ago

smrose commented 2 months ago

Use similar colors to the vote meter.

smrose commented 2 months ago

Fixed this by defining a mapping of values stored in the passessment.assessment field to the CSS classes used to set the background colors. Those values are currently from the set NULL, 0, 1 and the corresponding classes are 'neutral', 'out', 'in' - future projects that support a larger code space aren't supported without defining additional classes.