views: Move a test into a view, and fix the template accordingly.