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

35 lines
1.5 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
.fade-left= icon('angle-left')
.fade-right= icon('angle-right')
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?(:milestones)
2019-10-12 21:52:04 +05:30
= search_filter_link 'milestones', _("Milestones")
2017-09-10 17:25:29 +05:30
- if project_search_tabs?(:notes)
2019-10-12 21:52:04 +05:30
= search_filter_link 'notes', _("Comments")
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")
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' }
2019-10-12 21:52:04 +05:30
= search_filter_link 'issues', _("Issues")
= search_filter_link 'merge_requests', _("Merge requests")
= search_filter_link 'milestones', _("Milestones")
2019-09-30 21:07:59 +05:30
= render_if_exists 'search/category_elasticsearch'
2019-07-07 11:18:12 +05:30
= users