gitlab-org--gitlab-foss/app/views/search/_results.html.haml

18 lines
364 B
Text
Raw Normal View History

%h4
#{@search_results[:total_results]} results found
- if @project
for #{link_to @project.name_with_namespace, @project}
- elsif @group
for #{link_to @group.name, @group}
%hr
- if @project
= render "project_results"
- else
= render "global_results"
:javascript
$(".search_results .term").highlight("#{escape_javascript(params[:search])}");