add project rules section; replace php ifs by ng-ifs in project single.php