debian-mirror-gitlab/app/views/search/_category.html.haml

38 lines
1.9 KiB
Text
Raw Normal View History

2019-07-07 11:18:12 +05:30
- users = capture_haml do
2019-12-26 22:10:19 +05:30
- if show_user_search_tab?
2019-10-12 21:52:04 +05:30
= search_filter_link 'users', _("Users")
2019-07-07 11:18:12 +05:30
2017-08-17 22:00:37 +05:30
.scrolling-tabs-container.inner-page-scroll-tabs.is-smaller
2020-07-28 23:09:34 +05:30
.fade-left= sprite_icon('chevron-lg-left', size: 12)
.fade-right= sprite_icon('chevron-lg-right', size: 12)
2018-11-08 19:23:39 +05:30
%ul.nav-links.search-filter.scrolling-tabs.nav.nav-tabs
2017-08-17 22:00:37 +05:30
- if @project
2017-09-10 17:25:29 +05:30
- if project_search_tabs?(:blobs)
2019-10-12 21:52:04 +05:30
= search_filter_link 'blobs', _("Code"), data: { qa_selector: 'code_tab' }
2017-09-10 17:25:29 +05:30
- if project_search_tabs?(:issues)
2019-10-12 21:52:04 +05:30
= search_filter_link 'issues', _("Issues")
2017-09-10 17:25:29 +05:30
- if project_search_tabs?(:merge_requests)
2019-10-12 21:52:04 +05:30
= search_filter_link 'merge_requests', _("Merge requests")
2017-09-10 17:25:29 +05:30
- if project_search_tabs?(:wiki)
2019-10-12 21:52:04 +05:30
= search_filter_link 'wiki_blobs', _("Wiki")
2017-09-10 17:25:29 +05:30
- if project_search_tabs?(:commits)
2019-10-12 21:52:04 +05:30
= search_filter_link 'commits', _("Commits")
2021-06-08 01:23:25 +05:30
- if project_search_tabs?(:notes)
= search_filter_link 'notes', _("Comments")
- if project_search_tabs?(:milestones)
= search_filter_link 'milestones', _("Milestones")
2019-07-07 11:18:12 +05:30
= users
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
- elsif @show_snippets
2020-05-24 23:13:21 +05:30
= search_filter_link 'snippet_titles', _("Titles and Descriptions"), search: { snippets: true, group_id: nil, project_id: nil }
2017-08-17 22:00:37 +05:30
- else
2020-01-01 13:55:28 +05:30
= search_filter_link 'projects', _("Projects"), data: { qa_selector: 'projects_tab' }
2021-11-11 11:23:49 +05:30
= render_if_exists 'search/category_code' if feature_flag_tab_enabled?(:global_search_code_tab)
2021-06-08 01:23:25 +05:30
= render_if_exists 'search/epics_filter_link'
2021-11-11 11:23:49 +05:30
= search_filter_link 'issues', _("Issues") if feature_flag_tab_enabled?(:global_search_issues_tab)
= search_filter_link 'merge_requests', _("Merge requests") if feature_flag_tab_enabled?(:global_search_merge_requests_tab)
= render_if_exists 'search/category_wiki' if feature_flag_tab_enabled?(:global_search_wiki_tab)
2019-09-30 21:07:59 +05:30
= render_if_exists 'search/category_elasticsearch'
2021-06-08 01:23:25 +05:30
= search_filter_link 'milestones', _("Milestones")
2019-07-07 11:18:12 +05:30
= users