Skip to content

Commit

Permalink
Ensure each sidebar menu section is in its own item block
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar authored Aug 30, 2024
1 parent 0c4c141 commit 11239ca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/components/sidebar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ def view_template
div class: "h-4"

Menu do |menu|
menu.item do
menu.submenu :collapsible, :open do |submenu|
menu.item do |item|
item.submenu :collapsible, :open do |submenu|
submenu.title { "Docs" }

submenu.item do
link_to "Installation", docs_path(:installation)
end
end
end

menu.submenu :collapsible, :open do |submenu|
menu.item do |item|
item.submenu :collapsible, :open do |submenu|
submenu.title { "Components" }

Category.all.each do |category|
Expand Down

0 comments on commit 11239ca

Please sign in to comment.