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

_results_status.html.haml « search « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef5e3e831031a341c341051ccf7ce71b7c0d1bfc (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
- search_service = local_assigns.fetch(:search_service)

- return unless search_service.show_results_status?

.search-results-status
  .row-content-block.gl-display-flex
    .gl-md-display-flex.gl-text-left.gl-align-items-center.gl-flex-grow-1
      - unless search_service.without_count?
        = search_entries_info(search_service.search_objects, search_service.scope, params[:search])
      - unless search_service.show_snippets?
        - if search_service.project
          - link_to_project = link_to(search_service.project.full_name, search_service.project, class: 'ml-md-1')
          - if search_service.scope == 'blobs'
            = _("in")
            .mx-md-1
              #js-blob-ref-switcher{ data: { "project-id" => search_service.project.id, "ref" => repository_ref(search_service.project), "field-name": "repository_ref" } }
            = s_('SearchCodeResults|of %{link_to_project}').html_safe % { link_to_project: link_to_project }
          - else
            = _("in project %{link_to_project}").html_safe % { link_to_project: link_to_project }
        - elsif search_service.group
          - link_to_group = link_to(search_service.group.name, search_service.group, class: 'ml-md-1')
          = _("in group %{link_to_group}").html_safe % { link_to_group: link_to_group }
    - if search_service.show_sort_dropdown?
      .gl-md-display-flex.gl-flex-direction-column
        #js-search-sort{ data: { "search-sort-options" => search_sort_options.to_json } }