2023-03-17 16:20:25 +05:30
|
|
|
- if show_super_sidebar?
|
|
|
|
- @left_sidebar = true
|
2021-09-04 01:27:46 +05:30
|
|
|
.layout-page.hide-when-top-nav-responsive-open{ class: page_with_sidebar_class }
|
2023-03-17 16:20:25 +05:30
|
|
|
- if show_super_sidebar?
|
|
|
|
- sidebar_data = super_sidebar_context(current_user).to_json
|
|
|
|
%aside.js-super-sidebar.nav-sidebar{ data: { root_path: root_path, sidebar: sidebar_data, toggle_new_nav_endpoint: profile_preferences_url } }
|
|
|
|
- elsif defined?(nav) && nav
|
2018-03-17 18:26:18 +05:30
|
|
|
= render "layouts/nav/sidebar/#{nav}"
|
2021-09-04 01:27:46 +05:30
|
|
|
.content-wrapper.content-wrapper-margin{ class: "#{@content_wrapper_class}" }
|
2018-03-17 18:26:18 +05:30
|
|
|
.mobile-overlay
|
2022-05-07 20:08:51 +05:30
|
|
|
= dispensable_render_if_exists 'layouts/header/verification_reminder'
|
2021-01-29 00:20:46 +05:30
|
|
|
.alert-wrapper.gl-force-block-formatting-context
|
2022-05-07 20:08:51 +05:30
|
|
|
= dispensable_render 'shared/outdated_browser'
|
|
|
|
= dispensable_render_if_exists "layouts/header/licensed_user_count_threshold"
|
|
|
|
= dispensable_render_if_exists "layouts/header/token_expiry_notification"
|
2022-07-23 23:45:48 +05:30
|
|
|
= dispensable_render "shared/projects/inactive_project_deletion_alert"
|
2022-05-07 20:08:51 +05:30
|
|
|
= dispensable_render "layouts/broadcast"
|
|
|
|
= dispensable_render "layouts/header/read_only_banner"
|
|
|
|
= dispensable_render "layouts/header/registration_enabled_callout"
|
|
|
|
= dispensable_render "layouts/nav/classification_level_banner"
|
2017-08-17 22:00:37 +05:30
|
|
|
= yield :flash_message
|
2023-03-04 22:38:38 +05:30
|
|
|
= dispensable_render "shared/gitlab_version/security_patch_upgrade_alert"
|
2022-05-07 20:08:51 +05:30
|
|
|
= dispensable_render "shared/service_ping_consent"
|
|
|
|
= dispensable_render_if_exists "layouts/header/ee_subscribable_banner"
|
2022-07-23 23:45:48 +05:30
|
|
|
= dispensable_render_if_exists "layouts/header/seat_count_alert"
|
2022-05-07 20:08:51 +05:30
|
|
|
= dispensable_render_if_exists "shared/namespace_user_cap_reached_alert"
|
|
|
|
= dispensable_render_if_exists "shared/new_user_signups_cap_reached_alert"
|
2021-09-30 23:02:18 +05:30
|
|
|
= yield :page_level_alert
|
2022-07-23 23:45:48 +05:30
|
|
|
= yield :free_user_cap_alert
|
2022-04-04 11:22:00 +05:30
|
|
|
= yield :group_invite_members_banner
|
2018-03-17 18:26:18 +05:30
|
|
|
- unless @hide_breadcrumbs
|
|
|
|
= render "layouts/nav/breadcrumbs"
|
2023-01-13 00:05:48 +05:30
|
|
|
%div{ class: "#{container_class unless @no_container} #{@content_class}" }
|
2021-03-11 19:13:27 +05:30
|
|
|
%main.content{ id: "content-body", **page_itemtype }
|
2019-12-04 20:38:33 +05:30
|
|
|
= render "layouts/flash", extra_flash_class: 'limit-container-width'
|
2022-10-11 01:57:18 +05:30
|
|
|
= yield :after_flash_content
|
2021-03-11 19:13:27 +05:30
|
|
|
= yield :before_content
|
2016-09-13 17:45:13 +05:30
|
|
|
= yield
|
2021-09-30 23:02:18 +05:30
|
|
|
= yield :after_content
|
2021-10-27 15:23:28 +05:30
|
|
|
-# This is needed by [GitLab JH](https://gitlab.com/gitlab-jh/jh-team/gitlab-cn/-/issues/81)
|
|
|
|
= render_if_exists "shared/footer/global_footer"
|
2021-09-04 01:27:46 +05:30
|
|
|
|
|
|
|
= render "layouts/nav/top_nav_responsive", class: 'layout-page content-wrapper-margin'
|