34 lines
1.5 KiB
Text
34 lines
1.5 KiB
Text
- users = capture_haml do
|
|
- if show_user_search_tab?
|
|
= search_filter_link 'users', _("Users")
|
|
|
|
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
|
|
.fade-left= icon('angle-left')
|
|
.fade-right= icon('angle-right')
|
|
%ul.nav-links.search-filter.scrolling-tabs.nav.nav-tabs
|
|
- if @project
|
|
- if project_search_tabs?(:blobs)
|
|
= search_filter_link 'blobs', _("Code"), data: { qa_selector: 'code_tab' }
|
|
- if project_search_tabs?(:issues)
|
|
= search_filter_link 'issues', _("Issues")
|
|
- if project_search_tabs?(:merge_requests)
|
|
= search_filter_link 'merge_requests', _("Merge requests")
|
|
- if project_search_tabs?(:milestones)
|
|
= search_filter_link 'milestones', _("Milestones")
|
|
- if project_search_tabs?(:notes)
|
|
= search_filter_link 'notes', _("Comments")
|
|
- if project_search_tabs?(:wiki)
|
|
= search_filter_link 'wiki_blobs', _("Wiki")
|
|
- if project_search_tabs?(:commits)
|
|
= search_filter_link 'commits', _("Commits")
|
|
= users
|
|
|
|
- elsif @show_snippets
|
|
= search_filter_link 'snippet_titles', _("Titles and Descriptions"), search: { snippets: true, group_id: nil, project_id: nil }
|
|
- else
|
|
= search_filter_link 'projects', _("Projects"), data: { qa_selector: 'projects_tab' }
|
|
= search_filter_link 'issues', _("Issues")
|
|
= search_filter_link 'merge_requests', _("Merge requests")
|
|
= search_filter_link 'milestones', _("Milestones")
|
|
= render_if_exists 'search/category_elasticsearch'
|
|
= users
|