2017-03-28 10:56:08 -04:00
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
|
2017-03-24 05:49:10 -04:00
|
|
|
.fade-left= icon('angle-left')
|
|
|
|
.fade-right= icon('angle-right')
|
|
|
|
%ul.nav-links.search-filter.scrolling-tabs
|
|
|
|
- if @project
|
2017-05-29 09:52:02 -04:00
|
|
|
- if project_search_tabs?(:blobs)
|
2017-05-22 12:51:09 -04:00
|
|
|
%li{ class: active_when(@scope == 'blobs') }
|
|
|
|
= link_to search_filter_path(scope: 'blobs') do
|
|
|
|
Code
|
|
|
|
%span.badge
|
|
|
|
= @search_results.blobs_count
|
2017-05-29 09:52:02 -04:00
|
|
|
- if project_search_tabs?(:issues)
|
2017-05-22 12:51:09 -04:00
|
|
|
%li{ class: active_when(@scope == 'issues') }
|
|
|
|
= link_to search_filter_path(scope: 'issues') do
|
|
|
|
Issues
|
|
|
|
%span.badge
|
|
|
|
= @search_results.issues_count
|
2017-05-29 09:52:02 -04:00
|
|
|
- if project_search_tabs?(:merge_requests)
|
2017-05-22 12:51:09 -04:00
|
|
|
%li{ class: active_when(@scope == 'merge_requests') }
|
|
|
|
= link_to search_filter_path(scope: 'merge_requests') do
|
|
|
|
Merge requests
|
|
|
|
%span.badge
|
|
|
|
= @search_results.merge_requests_count
|
2017-05-29 09:52:02 -04:00
|
|
|
- if project_search_tabs?(:milestones)
|
2017-05-22 12:51:09 -04:00
|
|
|
%li{ class: active_when(@scope == 'milestones') }
|
|
|
|
= link_to search_filter_path(scope: 'milestones') do
|
|
|
|
Milestones
|
|
|
|
%span.badge
|
|
|
|
= @search_results.milestones_count
|
2017-05-29 09:52:02 -04:00
|
|
|
- if project_search_tabs?(:notes)
|
2017-05-22 12:51:09 -04:00
|
|
|
%li{ class: active_when(@scope == 'notes') }
|
|
|
|
= link_to search_filter_path(scope: 'notes') do
|
|
|
|
Comments
|
|
|
|
%span.badge
|
|
|
|
= @search_results.notes_count
|
2017-05-29 09:52:02 -04:00
|
|
|
- if project_search_tabs?(:wiki)
|
2017-05-22 12:51:09 -04:00
|
|
|
%li{ class: active_when(@scope == 'wiki_blobs') }
|
|
|
|
= link_to search_filter_path(scope: 'wiki_blobs') do
|
|
|
|
Wiki
|
|
|
|
%span.badge
|
|
|
|
= @search_results.wiki_blobs_count
|
2017-05-29 09:52:02 -04:00
|
|
|
- if project_search_tabs?(:commits)
|
2017-05-22 12:51:09 -04:00
|
|
|
%li{ class: active_when(@scope == 'commits') }
|
|
|
|
= link_to search_filter_path(scope: 'commits') do
|
|
|
|
Commits
|
|
|
|
%span.badge
|
|
|
|
= @search_results.commits_count
|
2015-04-29 05:19:54 -04:00
|
|
|
|
2017-03-24 05:49:10 -04:00
|
|
|
- elsif @show_snippets
|
|
|
|
%li{ class: active_when(@scope == 'snippet_blobs') }
|
|
|
|
= link_to search_filter_path(scope: 'snippet_blobs', snippets: true, group_id: nil, project_id: nil) do
|
|
|
|
Snippet Contents
|
|
|
|
%span.badge
|
|
|
|
= @search_results.snippet_blobs_count
|
|
|
|
%li{ class: active_when(@scope == 'snippet_titles') }
|
|
|
|
= link_to search_filter_path(scope: 'snippet_titles', snippets: true, group_id: nil, project_id: nil) do
|
|
|
|
Titles and Filenames
|
|
|
|
%span.badge
|
|
|
|
= @search_results.snippet_titles_count
|
|
|
|
- else
|
|
|
|
%li{ class: active_when(@scope == 'projects') }
|
|
|
|
= link_to search_filter_path(scope: 'projects') do
|
|
|
|
Projects
|
|
|
|
%span.badge
|
2018-01-23 06:03:15 -05:00
|
|
|
= limited_count(@search_results.limited_projects_count)
|
2017-03-24 05:49:10 -04:00
|
|
|
%li{ class: active_when(@scope == 'issues') }
|
|
|
|
= link_to search_filter_path(scope: 'issues') do
|
|
|
|
Issues
|
|
|
|
%span.badge
|
2018-01-23 06:03:15 -05:00
|
|
|
= limited_count(@search_results.limited_issues_count)
|
2017-03-24 05:49:10 -04:00
|
|
|
%li{ class: active_when(@scope == 'merge_requests') }
|
|
|
|
= link_to search_filter_path(scope: 'merge_requests') do
|
|
|
|
Merge requests
|
|
|
|
%span.badge
|
2018-01-23 06:03:15 -05:00
|
|
|
= limited_count(@search_results.limited_merge_requests_count)
|
2017-03-24 05:49:10 -04:00
|
|
|
%li{ class: active_when(@scope == 'milestones') }
|
|
|
|
= link_to search_filter_path(scope: 'milestones') do
|
|
|
|
Milestones
|
|
|
|
%span.badge
|
2018-01-23 06:03:15 -05:00
|
|
|
= limited_count(@search_results.limited_milestones_count)
|