diff options
Diffstat (limited to 'app/views/dashboard/_projects_nav.html.haml')
-rw-r--r-- | app/views/dashboard/_projects_nav.html.haml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/views/dashboard/_projects_nav.html.haml b/app/views/dashboard/_projects_nav.html.haml index 7cbd2fb14ec..4367d201190 100644 --- a/app/views/dashboard/_projects_nav.html.haml +++ b/app/views/dashboard/_projects_nav.html.haml @@ -1,13 +1,10 @@ - is_your_projects_path = current_page?(dashboard_projects_path) || current_page?(root_path) -- is_explore_projects_path = current_page?(explore_root_path) || current_page?(trending_explore_projects_path) || current_page?(starred_explore_projects_path) || current_page?(explore_projects_path) = gl_tabs_nav({ class: 'scrolling-tabs nav-links gl-display-flex gl-flex-grow-1 gl-w-full nav gl-tabs-nav' }) do = gl_tab_link_to dashboard_projects_path, { item_active: is_your_projects_path, class: 'shortcuts-activity', data: { placement: 'right' } } do = s_("ProjectList|Yours") - = gl_tab_counter_badge(limited_counter_with_delimiter(@total_user_projects_count)) + = gl_tab_counter_badge(limited_counter_with_delimiter(@all_user_projects)) = gl_tab_link_to starred_dashboard_projects_path, { data: { placement: 'right' } } do = s_("ProjectList|Starred") - = gl_tab_counter_badge(limited_counter_with_delimiter(@total_starred_projects_count)) - = gl_tab_link_to s_("ProjectList|Explore"), explore_root_path, { item_active: is_explore_projects_path, data: { placement: 'right' } } - = gl_tab_link_to s_("ProjectList|Topics"), topics_explore_projects_path, { data: { placement: 'right' } } + = gl_tab_counter_badge(limited_counter_with_delimiter(@all_starred_projects)) = render_if_exists "dashboard/removed_projects_tab" |