Commit ebd362ee authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '230760-tabs-haml-migrate-app-views-groups-show-html-haml-to-gltabs' into 'master'

Tabs > HAML > Migrate app/views/groups/show.html.haml to GlTabs

See merge request gitlab-org/gitlab!81253
parents 6fb14df7 baac8e6d
...@@ -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