File: _projects_nav.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (16 lines) | stat: -rw-r--r-- 1,225 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- is_your_projects_path = current_page?(dashboard_projects_path) || current_page?(root_path)

%div
  = gl_tabs_nav({ class: 'gl-flex gl-grow gl-border-none'}) do
    = gl_tab_link_to dashboard_projects_path, { item_active: is_your_projects_path && !params['archived'] && !params['personal'], class: 'shortcuts-activity', data: { placement: 'right' } } do
      = s_("ProjectList|Yours")
      = 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(@all_starred_projects))
    = gl_tab_link_to _('Personal'), dashboard_projects_path({ personal: true }), { item_active: params['personal'] == 'true' }
    = gl_tab_link_to _('Inactive'), dashboard_projects_path({ archived: 'only' }), { item_active: params['archived'] == 'only' }
    = render_if_exists "dashboard/removed_projects_tab"
  #js-projects-filtered-search-and-sort.gl-py-5.gl-border-t.gl-border-b.gl-w-full{ data: { app_data: projects_filtered_search_and_sort_app_data } }
    -# This element takes up space while Vue is rendering to avoid page jump
    .gl-h-7