codeforamerica / chime

A city-focused content management system
http://chimecms.org/
BSD 3-Clause "New" or "Revised" License
35 stars 12 forks source link

consolidate constants and pull them out of templates #440

Closed tmaybe closed 9 years ago

tmaybe commented 9 years ago

We're using constants to check the states of certain objects. At the moment they're defined at the tops of multiple different files. They should be consolidated in a single place.

Also, they should be used in templates, or any calculation based on them should be done before rendering a template so it only has to check a boolean value.