2019-04-17 07:02:34 -04:00
|
|
|
- project_tab_filter = local_assigns.fetch(:project_tab_filter, "")
|
2019-04-12 08:14:28 -04:00
|
|
|
- feature_project_list_filter_bar = Feature.enabled?(:project_list_filter_bar)
|
2019-04-19 04:36:16 -04:00
|
|
|
|
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
|
|
|
|
2019-04-12 07:59:24 -04:00
|
|
|
.page-title-holder.d-flex.align-items-center
|
2018-10-06 10:21:38 -04:00
|
|
|
%h1.page-title= _('Projects')
|
|
|
|
|
|
|
|
- if current_user.can_create_project?
|
|
|
|
.page-title-controls
|
2019-04-05 08:41:28 -04:00
|
|
|
= link_to _("New project"), new_project_path, class: "btn btn-success"
|
2018-10-06 10:21:38 -04:00
|
|
|
|
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')
|
2019-05-02 08:49:11 -04:00
|
|
|
%ul.nav-links.scrolling-tabs.mobile-separator.nav.nav-tabs{ class: ('border-0' if feature_project_list_filter_bar) }
|
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
|
2019-04-05 08:41:28 -04:00
|
|
|
= _("Your projects")
|
2018-12-07 05:05:17 -05:00
|
|
|
%span.badge.badge-pill= limited_counter_with_delimiter(@total_user_projects_count)
|
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
|
2019-04-05 08:41:28 -04:00
|
|
|
= _("Starred projects")
|
2018-12-07 05:05:17 -05:00
|
|
|
%span.badge.badge-pill= limited_counter_with_delimiter(@total_starred_projects_count)
|
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
|
2019-04-05 08:41:28 -04:00
|
|
|
= _("Explore projects")
|
2019-04-12 08:14:28 -04:00
|
|
|
- unless feature_project_list_filter_bar
|
2019-04-01 21:12:29 -04:00
|
|
|
.nav-controls
|
|
|
|
= render 'shared/projects/search_form'
|
|
|
|
= render 'shared/projects/dropdown'
|
2019-04-12 08:14:28 -04:00
|
|
|
- if feature_project_list_filter_bar
|
2019-04-01 21:12:29 -04:00
|
|
|
.project-filters
|
2019-04-17 07:02:34 -04:00
|
|
|
= render 'shared/projects/search_bar', project_tab_filter: project_tab_filter
|