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/explore/projects | |
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/explore/projects')
-rw-r--r-- | app/views/explore/projects/_projects.html.haml | 12 |
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 |