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:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-03-02 23:46:37 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-03-02 23:46:37 +0300
commite677bac933b888282a1638d0337938bd0ad449b1 (patch)
treeae2b38a6a6fe9bf29734bc3862fc8b463e0ef4e7 /app/views/search
parentf01c54eeef9a30044d974403aec371577e1a04c2 (diff)
Place pagination outside .search-results
Diffstat (limited to 'app/views/search')
-rw-r--r--app/views/search/_results.html.haml4
1 files changed, 3 insertions, 1 deletions
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])}");