debian-mirror-gitlab/app/views/search/_results.html.haml
2014-09-02 14:37:02 +02:00

17 lines
364 B
Text

%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])}");