fix searching on empty project, prevent 500

Fix hound
Restyle search page

Use ruby 1.9 syntax
Merge pull request #7385 from Razer6/fix_search_empty_project

Fix 500 on searching on empty project, restyle search page