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.
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.