refactoring app/views/search/warning.html.erb