liqd/adhocracy — pull request #121 by skoenen (2012-11-05 15:25:43+00:00)
Title: Allow badges to be invisible (Issue #116)

To implement solution for Issue #116, the following changes are made:

+ Added attribute **raw** to **facet.item** in `SolrFacet._current_items` containing the bare item. Needed to hide inivisible badges in the sidebar of the _user/all_ listing. _lib/pager.py_

+ Added Class **ValidColor** that checks for valid non HTMLColorCodes. If the colorcode is not in the table of valid colors, it delegates the check to the original **ValidHTMLColor**. _controllers/badge.py_, _forms/common.py_

+ Changed badge/tiles.html to skip a badge whose color is 'invisible'

+ Changed pager.html to skip a item that has the color attribute and
whose color attribute is invisible

+ Changed the spectrum.js to support "invisible" as color. -> Updated version of spectrum.js with changes for "invisible" included and also under [Fork of spectrum](https://github.com/skoenen/spectrum/tree/non-html-codecolors)

The "invisible" badges after that only show up at assign page, badge edit page and badge list.