summaryrefslogtreecommitdiff
path: root/app/views/search/_project_filter.html.haml
blob: ad933502a282d928dd92c93c9f604b1f480936bd (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
27
28
29
30
31
32
%ul.nav.nav-pills.nav-stacked.search-filter
  %li{class: ("active" if @scope == 'blobs')}
    = link_to search_filter_path(scope: 'blobs') do
      %i.fa.fa-code
      Code
      .pull-right
        = @search_results.blobs_count
  %li{class: ("active" if @scope == 'issues')}
    = link_to search_filter_path(scope: 'issues') do
      %i.fa.fa-exclamation-circle
      Issues
      .pull-right
        = @search_results.issues_count
  %li{class: ("active" if @scope == 'merge_requests')}
    = link_to search_filter_path(scope: 'merge_requests') do
      %i.fa.fa-code-fork
      Merge requests
      .pull-right
        = @search_results.merge_requests_count
  %li{class: ("active" if @scope == 'notes')}
    = link_to search_filter_path(scope: 'notes') do
      %i.fa.fa-comments
      Comments
      .pull-right
        = @search_results.notes_count
  %li{class: ("active" if @scope == 'wiki_blobs')}
    = link_to search_filter_path(scope: 'wiki_blobs') do
      %i.fa.fa-book
      Wiki
      .pull-right
        = @search_results.wiki_blobs_count