5bb6a85b90
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>
17 lines
545 B
Text
17 lines
545 B
Text
.top-area
|
|
%ul.nav-links
|
|
= nav_link(page: [trending_explore_projects_path, explore_root_path]) do
|
|
= link_to trending_explore_projects_path do
|
|
Trending
|
|
= nav_link(page: starred_explore_projects_path) do
|
|
= link_to starred_explore_projects_path do
|
|
Most stars
|
|
= nav_link(page: explore_projects_path) do
|
|
= link_to explore_projects_path do
|
|
All
|
|
|
|
.nav-controls
|
|
- unless current_user
|
|
= render 'shared/projects/search_form'
|
|
= render 'shared/projects/dropdown'
|
|
= render 'filter'
|