diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-26 22:44:02 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-08-26 22:44:02 +0200 |
commit | b54358b45785639acc49e4b065020d2089040bd9 (patch) | |
tree | 48cc2f1e1c710851ae1ad27ad5703376f1ca9027 /app/views/search | |
parent | c27c81331183dd6c878b4a74df7e62e37b006a04 (diff) | |
download | gitlab-ce-b54358b45785639acc49e4b065020d2089040bd9.tar.gz |
Refactor project list rendering
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/search')
-rw-r--r-- | app/views/search/_results.html.haml | 6 | ||||
-rw-r--r-- | app/views/search/results/_project.html.haml | 6 |
2 files changed, 5 insertions, 7 deletions
diff --git a/app/views/search/_results.html.haml b/app/views/search/_results.html.haml index 741c780ad96..0dc1dd53628 100644 --- a/app/views/search/_results.html.haml +++ b/app/views/search/_results.html.haml @@ -14,7 +14,11 @@ %br .results.prepend-top-10 .search-results - = render partial: "search/results/#{@scope.singularize}", collection: @objects + - if @scope == 'projects' + .term + = render 'shared/projects/list', projects: @objects + - else + = render partial: "search/results/#{@scope.singularize}", collection: @objects = paginate @objects, theme: 'gitlab' :javascript diff --git a/app/views/search/results/_project.html.haml b/app/views/search/results/_project.html.haml deleted file mode 100644 index 195cf06c8ea..00000000000 --- a/app/views/search/results/_project.html.haml +++ /dev/null @@ -1,6 +0,0 @@ -.search-result-row - %h4 - = link_to [project.namespace.becomes(Namespace), project] do - %span.term= project.name_with_namespace - - if project.description.present? - %span.light.term= project.description |