factored out ng-if with ng-switch, commented projects.html.erb