summaryrefslogtreecommitdiff
path: root/app/views/explore/projects/_projects.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-26 22:44:02 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-26 22:44:02 +0200
commitb54358b45785639acc49e4b065020d2089040bd9 (patch)
tree48cc2f1e1c710851ae1ad27ad5703376f1ca9027 /app/views/explore/projects/_projects.html.haml
parentc27c81331183dd6c878b4a74df7e62e37b006a04 (diff)
downloadgitlab-ce-b54358b45785639acc49e4b065020d2089040bd9.tar.gz
Refactor project list rendering
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/explore/projects/_projects.html.haml')
-rw-r--r--app/views/explore/projects/_projects.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/explore/projects/_projects.html.haml b/app/views/explore/projects/_projects.html.haml
index 22cc541115c..669079e9521 100644
--- a/app/views/explore/projects/_projects.html.haml
+++ b/app/views/explore/projects/_projects.html.haml
@@ -1,6 +1,6 @@
-%ul.projects-list.bordered-list.my-projects.public-projects
- - projects.each do |project|
- %li.project-row
- = render partial: 'shared/project', locals: { project: project, avatar: true, stars: true }
-- unless projects.present?
- .nothing-here-block No such projects
+- if projects.any?
+ .public-projects
+ = render 'shared/projects/list', projects: projects
+- else
+ .nothing-here-block
+ No such projects