summaryrefslogtreecommitdiff
path: root/app/views/explore
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-03 13:09:58 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-03 13:09:58 +0100
commit7455d950bcd0152ee30c024a30a652886970ac3f (patch)
treec8aded95124437644a8f32b9370000fc11360c93 /app/views/explore
parent7e710acc1c72de7d11ad393ee3e111e250e0cb66 (diff)
downloadgitlab-ce-7455d950bcd0152ee30c024a30a652886970ac3f.tar.gz
Refactor projects list
1. Fix double bottom border if pagination 2. Fix broken search on forks page 4. Remove duplicate js logic 4. Remove unused show all link 5. Remove duplicate “no project” message in different views After this merge request you can easily render shared projects template with all necessary html/js included to make searchable list with pagination. All you need to provide is controller that returns projects list with seach nad pagination and render html form with project-filter-form id and text field with filter_projects name. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/explore')
-rw-r--r--app/views/explore/projects/_projects.html.haml7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/explore/projects/_projects.html.haml b/app/views/explore/projects/_projects.html.haml
index 999a933390b..708fbc27f55 100644
--- a/app/views/explore/projects/_projects.html.haml
+++ b/app/views/explore/projects/_projects.html.haml
@@ -1,6 +1 @@
-- if projects.any?
- .projects-list-holder
- = render 'shared/projects/list', projects: projects
-- else
- .nothing-here-block
- No such projects
+= render 'shared/projects/list', projects: projects