debian-mirror-gitlab/app/views/search/_results_list.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
806 B
Text
Raw Normal View History

2022-11-25 23:54:43 +05:30
- if @timeout
= render partial: "search/results/timeout"
2023-04-23 21:23:45 +05:30
- elsif @search_results.respond_to?(:failed?) && @search_results.failed?
= render partial: "search/results/error"
2023-05-27 22:25:52 +05:30
- elsif @search_objects.blank?
2022-11-25 23:54:43 +05:30
= render partial: "search/results/empty"
- else
2023-05-27 22:25:52 +05:30
.gl-md-pl-5
- if @scope == 'commits'
%ul.content-list.commit-list
= render partial: "search/results/commit", collection: @search_objects
- else
.search-results.js-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
2022-11-25 23:54:43 +05:30
2023-05-27 22:25:52 +05:30
- if @scope != 'projects'
= paginate_collection(@search_objects)