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>
20 lines
938 B
Text
20 lines
938 B
Text
= content_for :flash_message do
|
|
= render 'shared/project_limit'
|
|
.top-area
|
|
%ul.nav-links
|
|
= nav_link(page: [dashboard_projects_path, root_path]) do
|
|
= link_to dashboard_projects_path, title: 'Home', class: 'shortcuts-activity', data: {placement: 'right'} do
|
|
Your projects
|
|
= nav_link(page: starred_dashboard_projects_path) do
|
|
= link_to starred_dashboard_projects_path, title: 'Starred Projects', data: {placement: 'right'} do
|
|
Starred projects
|
|
= nav_link(page: [explore_root_path, trending_explore_projects_path, starred_explore_projects_path, explore_projects_path]) do
|
|
= link_to explore_root_path, title: 'Explore', data: {placement: 'right'} do
|
|
Explore projects
|
|
|
|
.nav-controls
|
|
= render 'shared/projects/search_form'
|
|
= render 'shared/projects/dropdown'
|
|
- if current_user.can_create_project?
|
|
= link_to new_project_path, class: 'btn btn-new' do
|
|
New Project
|