Return a dict used for a template context.

def inject_context(self):
        """Return a dict used for a template context."""
        navbar = filter(lambda entry: entry.visible, self.navbar_entries)
        return {'navbar': navbar}