2021-04-29 21:17:54 +05:30
|
|
|
%aside.nav-sidebar{ class: ('sidebar-collapsed-desktop' if collapsed_sidebar?), **sidebar_tracking_attributes_by_object(sidebar.container), 'aria-label': sidebar.aria_label }
|
|
|
|
.nav-sidebar-inner-scroll
|
2021-09-30 23:02:18 +05:30
|
|
|
%ul.sidebar-top-level-items{ data: { qa_selector: sidebar_qa_selector(sidebar.container) } }
|
|
|
|
- if sidebar.render_raw_scope_menu_partial
|
|
|
|
= render sidebar.render_raw_scope_menu_partial
|
|
|
|
- elsif sidebar.scope_menu
|
2021-09-04 01:27:46 +05:30
|
|
|
= render partial: 'shared/nav/scope_menu', object: sidebar.scope_menu
|
2021-09-30 23:02:18 +05:30
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
- if sidebar.renderable_menus.any?
|
|
|
|
= render partial: 'shared/nav/sidebar_menu', collection: sidebar.renderable_menus
|
2021-09-30 23:02:18 +05:30
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
- if sidebar.render_raw_menus_partial
|
|
|
|
= render sidebar.render_raw_menus_partial
|
|
|
|
|
2021-06-08 01:23:25 +05:30
|
|
|
= render partial: 'shared/nav/sidebar_hidden_menu_item', collection: sidebar.hidden_menu&.renderable_items
|
2021-04-29 21:17:54 +05:30
|
|
|
= render 'shared/sidebar_toggle_button'
|