Commit 84f5d382 authored by Michel Engelen's avatar Michel Engelen Committed by Filipa Lacerda

move EE-specific code to subtemplate

parent c074cbf2
......@@ -87,20 +87,5 @@
= _("Milestones")
%span.badge.badge-pill
= limited_count(@search_results.limited_milestones_count)
- if search_service.use_elasticsearch?
%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)
= render_if_exists 'search/category_elasticsearch'
= users
---
title: "Moved EE/CE code differences for file `app/views/search/_category.html.haml` into CE"
merge_request: 28755
author: Michel Engelen
type: other
- if search_service.use_elasticsearch?
%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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment