divio/django-cms — pull request #1110 by kezabelle (2011-12-08 19:09:56+00:00)
Title: minor tidy up of the menu_item 'in_navigation' section.

Reduces code duplication by making use of django's [yesno](https://code.djangoproject.com/browser/django/trunk/django/template/defaultfilters.py#L768) filter to inline a lot of essentially boolean values. It hard codes the one instance of yes/no (for the icon) to avoid translation lookups that would render the icon broken under languages other than english.

I've only tackled it in this one place, as I was customising the template to specifically modify that functionality, so there may be more that _could_ make use of the same refactoring.