Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_results_list.html.haml « search « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ff79f003e7d2935cf5139b2d16f6414343325c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.advanced-search-promote
  = render_if_exists 'shared/promotions/promote_advanced_search'

- if @timeout
  = render partial: "search/results/timeout"
- elsif @search_results.respond_to?(:failed?) && @search_results.failed?
  = render partial: "search/results/error"
- elsif @search_objects.blank?
  = render partial: "search/results/empty"
- else
  - statusBarClass = !show_super_sidebar? ? 'gl-md-pl-5' : ''

  .section{ class: statusBarClass }
    - 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

    - if @scope != 'projects'
      = paginate_collection(@search_objects)