Move EE differences for app/views/search/_category.html.haml
Move EE differences for app/views/search/_category.html.haml
diff --git a/home/yorickpeterse/Projects/gitlab/gdk-ce/gitlab/app/views/search/_category.html.haml b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/app/views/search/_category.html.haml
index aaf9b973cda..d11258e6c32 100644
--- a/home/yorickpeterse/Projects/gitlab/gdk-ce/gitlab/app/views/search/_category.html.haml
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/app/views/search/_category.html.haml
@@ -78,3 +78,19 @@
= _("Milestones")
%span.badge.badge-pill
= limited_count(@search_results.limited_milestones_count)
+ - if Gitlab::CurrentSettings.elasticsearch_search?
+ %li{ class: active_when(@scope == 'blobs') }
+ = link_to search_filter_path(scope: 'blobs') do
+ = _("Code")
+ %span.badge.badge-pill
+ = limited_count(@search_results.blobs_count)
+ %li{ class: active_when(@scope == 'commits') }
+ = link_to search_filter_path(scope: 'commits') do
+ = _("Commits")
+ %span.badge.badge-pill
+ = limited_count(@search_results.commits_count)
+ %li{ class: active_when(@scope == 'wiki_blobs') }
+ = link_to search_filter_path(scope: 'wiki_blobs') do
+ = _("Wiki")
+ %span.badge.badge-pill
+ = limited_count(@search_results.wiki_blobs_count)