2016-04-21 10:05:50 +00:00
|
|
|
- if @objects.empty?
|
2015-04-28 19:04:19 +00:00
|
|
|
= render partial: "search/results/empty"
|
|
|
|
- else
|
2016-01-13 16:13:36 +00:00
|
|
|
.gray-content-block
|
2016-04-15 16:00:53 +00:00
|
|
|
= search_entries_info @objects, @scope, @search_term
|
2015-04-28 19:04:19 +00:00
|
|
|
- unless @show_snippets
|
|
|
|
- if @project
|
|
|
|
in project #{link_to @project.name_with_namespace, [@project.namespace.becomes(Namespace), @project]}
|
|
|
|
- elsif @group
|
|
|
|
in group #{link_to @group.name, @group}
|
|
|
|
|
|
|
|
.results.prepend-top-10
|
|
|
|
.search-results
|
2015-08-26 20:44:02 +00:00
|
|
|
- if @scope == 'projects'
|
|
|
|
.term
|
|
|
|
= render 'shared/projects/list', projects: @objects
|
|
|
|
- else
|
|
|
|
= render partial: "search/results/#{@scope.singularize}", collection: @objects
|
2016-03-02 20:46:37 +00:00
|
|
|
|
|
|
|
- if @scope != 'projects'
|
|
|
|
= paginate @objects, theme: 'gitlab'
|