summaryrefslogtreecommitdiff
path: root/app/views/search/_results.html.haml
blob: 8262c3c90e13399cd07dfa9e040fdfdb7b2da4c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- search_bar_classes = 'search-sidebar gl-display-flex gl-flex-direction-column gl-mr-4'

= render_if_exists 'shared/promotions/promote_advanced_search'
- if Feature.enabled?(:search_page_vertical_nav, current_user) && %w[issues merge_requests].include?(@scope)
  .results.gl-md-display-flex.gl-mt-0
    #js-search-sidebar{ class: search_bar_classes, data: { navigation: search_navigation_json } }
    .gl-w-full.gl-flex-grow-1.gl-overflow-x-hidden
      = render partial: 'search/results_status', locals: { search_service: @search_service } unless @search_objects.to_a.empty?
      = render partial: 'search/results_list'

- else
  = render partial: 'search/results_status', locals: { search_service: @search_service } unless @search_objects.to_a.empty?

  .results.gl-md-display-flex.gl-mt-3
    - if %w[issues merge_requests].include?(@scope)
      #js-search-sidebar{ class: search_bar_classes, data: { navigation: search_navigation_json } }

    .gl-w-full.gl-flex-grow-1.gl-overflow-x-hidden
      = render partial: 'search/results_list'