Commit b61591c6 authored by Robert Hunt's avatar Robert Hunt

Migrate groups show page to GlTabs

Changelog: other
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/81253
parent 21e260cb
...@@ -37,16 +37,15 @@ ...@@ -37,16 +37,15 @@
.scrolling-tabs-container.inner-page-scroll-tabs .scrolling-tabs-container.inner-page-scroll-tabs
.fade-left= sprite_icon('chevron-lg-left', size: 12) .fade-left= sprite_icon('chevron-lg-left', size: 12)
.fade-right= sprite_icon('chevron-lg-right', size: 12) .fade-right= sprite_icon('chevron-lg-right', size: 12)
%ul.nav-links.scrolling-tabs.mobile-separator.nav.nav-tabs // `item_active` is set to `false` as the active state is set by `app/assets/javascripts/pages/groups/shared/group_details.js`
%li.js-subgroups_and_projects-tab // TODO: Replace this approach in https://gitlab.com/gitlab-org/gitlab/-/issues/23466
= link_to group_path, data: { target: 'div#subgroups_and_projects', action: 'subgroups_and_projects', toggle: 'tab'} do = gl_tabs_nav({ class: 'nav-links scrolling-tabs gl-display-flex gl-flex-grow-1 gl-flex-nowrap gl-border-0' }) do
= _("Subgroups and projects") = gl_tab_link_to group_path, item_active: false, tab_class: 'js-subgroups_and_projects-tab', data: { target: 'div#subgroups_and_projects', action: 'subgroups_and_projects', toggle: 'tab' } do
%li.js-shared-tab = _("Subgroups and projects")
= link_to group_shared_path, data: { target: 'div#shared', action: 'shared', toggle: 'tab'} do = gl_tab_link_to group_shared_path, item_active: false, tab_class: 'js-shared-tab', data: { target: 'div#shared', action: 'shared', toggle: 'tab' } do
= _("Shared projects") = _("Shared projects")
%li.js-archived-tab = gl_tab_link_to group_archived_path, item_active: false, tab_class: 'js-archived-tab', data: { target: 'div#archived', action: 'archived', toggle: 'tab' } do
= link_to group_archived_path, data: { target: 'div#archived', action: 'archived', toggle: 'tab'} do = _("Archived projects")
= _("Archived projects")
.nav-controls.d-block.d-md-flex .nav-controls.d-block.d-md-flex
.group-search .group-search
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment