Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Cook <dcook@gitlab.com>2019-05-30 05:31:07 +0300
committerDonald Cook <dcook@gitlab.com>2019-05-31 21:56:59 +0300
commit0822f192f9490a45d1204fb02ec0171d7fb06ee2 (patch)
treec6f10cb38a57859e1e7e2e0056315743403ce1fd /app/views/search
parent9209736a22501dd4ea16afee86d0968bead84100 (diff)
CE: Resolve EE differences in search/_results.html.haml
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/_results.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/search/_results.html.haml b/app/views/search/_results.html.haml
index 8ae2807729b..cb8a8a24be8 100644
--- a/app/views/search/_results.html.haml
+++ b/app/views/search/_results.html.haml
@@ -1,5 +1,6 @@
- if @search_objects.to_a.empty?
= render partial: "search/results/empty"
+ = render_if_exists 'shared/promotions/promote_advanced_search'
- else
.row-content-block
- unless @search_objects.is_a?(Kaminari::PaginatableWithoutCount)
@@ -11,7 +12,7 @@
- elsif @group
- link_to_group = link_to(@group.name, @group)
= _("in group %{link_to_group}").html_safe % { link_to_group: link_to_group }
-
+ = render_if_exists 'shared/promotions/promote_advanced_search'
.results.prepend-top-10
- if @scope == 'commits'
%ul.content-list.commit-list