From e677bac933b888282a1638d0337938bd0ad449b1 Mon Sep 17 00:00:00 2001 From: Alfredo Sumaran Date: Wed, 2 Mar 2016 15:46:37 -0500 Subject: [PATCH] Place pagination outside .search-results --- app/views/search/_results.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/search/_results.html.haml b/app/views/search/_results.html.haml index e389ec1d2b2..60df348891c 100644 --- a/app/views/search/_results.html.haml +++ b/app/views/search/_results.html.haml @@ -18,7 +18,9 @@ = render 'shared/projects/list', projects: @objects - else = render partial: "search/results/#{@scope.singularize}", collection: @objects - = paginate @objects, theme: 'gitlab' + + - if @scope != 'projects' + = paginate @objects, theme: 'gitlab' :javascript $(".search-results .term").highlight("#{escape_javascript(params[:search])}");