2015-12-02 19:02:15 -05:00
|
|
|
= content_for :flash_message do
|
|
|
|
= render 'shared/project_limit'
|
2017-07-03 06:58:06 -04:00
|
|
|
|
2018-10-06 10:21:38 -04:00
|
|
|
.page-title-holder
|
|
|
|
%h1.page-title= _('Projects')
|
|
|
|
|
|
|
|
- if current_user.can_create_project?
|
|
|
|
.page-title-controls
|
|
|
|
= link_to "New project", new_project_path, class: "btn btn-success"
|
|
|
|
|
2017-03-24 06:02:31 -04:00
|
|
|
.top-area.scrolling-tabs-container.inner-page-scroll-tabs
|
|
|
|
.fade-left= icon('angle-left')
|
|
|
|
.fade-right= icon('angle-right')
|
2018-04-19 23:34:20 -04:00
|
|
|
%ul.nav-links.scrolling-tabs.mobile-separator.nav.nav-tabs
|
2017-03-24 06:02:31 -04:00
|
|
|
= nav_link(page: [dashboard_projects_path, root_path]) do
|
2017-10-25 04:26:58 -04:00
|
|
|
= link_to dashboard_projects_path, class: 'shortcuts-activity', data: {placement: 'right'} do
|
2017-03-24 06:02:31 -04:00
|
|
|
Your projects
|
2018-11-30 10:48:17 -05:00
|
|
|
%span.badge.badge-pill= limited_counter_with_delimiter(ProjectsFinder.new(params: {non_public: true}, current_user: current_user).execute)
|
2017-03-24 06:02:31 -04:00
|
|
|
= nav_link(page: starred_dashboard_projects_path) do
|
2017-10-25 04:26:58 -04:00
|
|
|
= link_to starred_dashboard_projects_path, data: {placement: 'right'} do
|
2017-03-24 06:02:31 -04:00
|
|
|
Starred projects
|
2018-11-30 10:48:17 -05:00
|
|
|
%span.badge.badge-pill= limited_counter_with_delimiter(ProjectsFinder.new(params: {starred: true}, current_user: current_user).execute)
|
2017-03-24 06:02:31 -04:00
|
|
|
= nav_link(page: [explore_root_path, trending_explore_projects_path, starred_explore_projects_path, explore_projects_path]) do
|
2017-10-25 04:26:58 -04:00
|
|
|
= link_to explore_root_path, data: {placement: 'right'} do
|
2017-03-24 06:02:31 -04:00
|
|
|
Explore projects
|
2015-12-02 19:02:15 -05:00
|
|
|
|
2017-09-06 04:38:48 -04:00
|
|
|
.nav-controls
|
2017-03-03 05:13:03 -05:00
|
|
|
= render 'shared/projects/search_form'
|
2016-03-04 10:42:37 -05:00
|
|
|
= render 'shared/projects/dropdown'
|