%fieldset
  %legend
    Search results
    %span.cgray (#{@total_results})

- if @project
  = render "project_results"
- else
  = render "global_results"

:javascript
  $(".search_results .term").highlight("#{escape_javascript(params[:search])}");

