2020-12-14 21:09:47 +00:00
|
|
|
- search_bar_classes = 'search-sidebar gl-display-flex gl-flex-direction-column gl-mr-4'
|
2021-07-09 12:08:17 +00:00
|
|
|
= render_if_exists 'shared/promotions/promote_advanced_search'
|
|
|
|
= render partial: 'search/results_status', locals: { search_service: @search_service } unless @search_objects.to_a.empty?
|
2020-12-14 21:09:47 +00:00
|
|
|
|
2021-07-09 12:08:17 +00:00
|
|
|
.results.gl-md-display-flex.gl-mt-3
|
|
|
|
- if %w(issues merge_requests).include?(@scope)
|
|
|
|
#js-search-sidebar{ class: search_bar_classes }
|
|
|
|
.gl-w-full.gl-flex-grow-1.gl-overflow-x-hidden
|
|
|
|
- if @timeout
|
|
|
|
= render partial: "search/results/timeout"
|
|
|
|
- elsif @search_objects.to_a.empty?
|
2020-11-17 00:09:16 +00:00
|
|
|
= render partial: "search/results/empty"
|
2021-07-09 12:08:17 +00:00
|
|
|
- else
|
2020-11-17 00:09:16 +00:00
|
|
|
- if @scope == 'commits'
|
|
|
|
%ul.content-list.commit-list
|
|
|
|
= render partial: "search/results/commit", collection: @search_objects
|
|
|
|
- else
|
|
|
|
.search-results
|
|
|
|
- if @scope == 'projects'
|
|
|
|
.term
|
|
|
|
= render 'shared/projects/list', projects: @search_objects, pipeline_status: false
|
|
|
|
- else
|
|
|
|
= render_if_exists partial: "search/results/#{@scope.singularize}", collection: @search_objects
|
2016-03-02 20:46:37 +00:00
|
|
|
|
2020-11-17 00:09:16 +00:00
|
|
|
- if @scope != 'projects'
|
|
|
|
= paginate_collection(@search_objects)
|