app/views/avo/sidebar/_sidebar.html.erb in avo-1.0.5 vs app/views/avo/sidebar/_sidebar.html.erb in avo-1.1.0.pre.1

- old
+ new

@@ -1,18 +1,27 @@ <div class="application-sidebar flex h-full bg-white text-white w-56 z-50 border-r border-gray-300"> <div class="flex flex-col w-full"> <%= link_to root_path, class: 'logo-placeholder h-16 bg-white p-2 flex justify-center' do %> - <%= render_logo %> + <%= render partial: "avo/partials/logo" %> <% end %> <div class="flex-1 flex flex-col justify-between"> <div class="tools py-4"> <%= render Avo::NavigationLinkComponent.new label: 'Get started', path: '/avo', active: :exclusive if Rails.env.development? %> <%= render Avo::NavigationHeadingComponent.new label: t('avo.resources') %> <div class="w-full"> - <% Avo::App.get_navigation_items(_current_user).each do |resource| %> + <% Avo::App.resources_navigation(_current_user).each do |resource| %> <%= render Avo::NavigationLinkComponent.new label: resource.name.pluralize.humanize, path: resources_path(resource.model_class) %> + <% end %> + + <% sidebar_partials = Avo::App.get_sidebar_partials %> + <% if sidebar_partials.present? %> + <%= render Avo::NavigationHeadingComponent.new label: t('avo.tools') %> + + <% sidebar_partials.each do |partial| %> + <%= render partial: "/avo/sidebar/items/#{partial}" %> + <% end %> <% end %> </div> </div>