30 lines
1.3 KiB
Text
30 lines
1.3 KiB
Text
- search_bar_classes = 'search-sidebar gl-display-flex gl-flex-direction-column gl-mr-4'
|
|
|
|
- if @search_objects.to_a.empty?
|
|
.gl-md-display-flex
|
|
- if %w(issues merge_requests).include?(@scope)
|
|
#js-search-sidebar{ class: search_bar_classes }
|
|
.gl-w-full.gl-flex-fill-1.gl-overflow-x-hidden
|
|
= render partial: "search/results/empty"
|
|
= render_if_exists 'shared/promotions/promote_advanced_search'
|
|
- else
|
|
= render partial: 'search/results_status', locals: { search_service: @search_service }
|
|
= render_if_exists 'shared/promotions/promote_advanced_search'
|
|
|
|
.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-fill-1.gl-overflow-x-hidden
|
|
- 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
|
|
|
|
- if @scope != 'projects'
|
|
= paginate_collection(@search_objects)
|