-
- Downloads
Refactor projects filtering by name
Reuse same search form and behavior for dashboard#projects, group#projects
and admin#projects. Repsect all other options like sorting, personal
filter when search projects by name. Create FilterableList JS class to
handle identical behaviour of projects and groups lists.
This change also makes filtering and sorting availabe on explore#projects
and explore#groups no matter if you are logged in or not.
Signed-off-by:
Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
- app/assets/javascripts/dispatcher.js.es6 10 additions, 3 deletionsapp/assets/javascripts/dispatcher.js.es6
- app/assets/javascripts/filterable_list.js 47 additions, 0 deletionsapp/assets/javascripts/filterable_list.js
- app/assets/javascripts/groups_list.js 6 additions, 38 deletionsapp/assets/javascripts/groups_list.js
- app/assets/javascripts/projects_list.js 14 additions, 49 deletionsapp/assets/javascripts/projects_list.js
- app/assets/stylesheets/pages/search.scss 4 additions, 2 deletionsapp/assets/stylesheets/pages/search.scss
- app/controllers/admin/projects_controller.rb 9 additions, 0 deletionsapp/controllers/admin/projects_controller.rb
- app/helpers/explore_helper.rb 6 additions, 1 deletionapp/helpers/explore_helper.rb
- app/views/admin/projects/_projects.html.haml 32 additions, 0 deletionsapp/views/admin/projects/_projects.html.haml
- app/views/admin/projects/index.html.haml 19 additions, 59 deletionsapp/views/admin/projects/index.html.haml
- app/views/dashboard/_groups_head.html.haml 1 addition, 2 deletionsapp/views/dashboard/_groups_head.html.haml
- app/views/dashboard/_projects_head.html.haml 1 addition, 3 deletionsapp/views/dashboard/_projects_head.html.haml
- app/views/dashboard/projects/index.html.haml 0 additions, 1 deletionapp/views/dashboard/projects/index.html.haml
- app/views/explore/groups/_nav.html.haml 8 additions, 0 deletionsapp/views/explore/groups/_nav.html.haml
- app/views/explore/groups/index.html.haml 1 addition, 1 deletionapp/views/explore/groups/index.html.haml
- app/views/explore/projects/_nav.html.haml 17 additions, 10 deletionsapp/views/explore/projects/_nav.html.haml
- app/views/explore/projects/index.html.haml 1 addition, 6 deletionsapp/views/explore/projects/index.html.haml
- app/views/groups/show.html.haml 1 addition, 3 deletionsapp/views/groups/show.html.haml
- app/views/shared/groups/_search_form.html.haml 2 additions, 0 deletionsapp/views/shared/groups/_search_form.html.haml
- app/views/shared/projects/_dropdown.html.haml 8 additions, 13 deletionsapp/views/shared/projects/_dropdown.html.haml
- app/views/shared/projects/_filter_fields.html.haml 0 additions, 11 deletionsapp/views/shared/projects/_filter_fields.html.haml
app/assets/javascripts/filterable_list.js
0 → 100644
app/views/admin/projects/_projects.html.haml
0 → 100644
app/views/explore/groups/_nav.html.haml
0 → 100644
Please register or sign in to comment