Sha256: 3489ff73a00f74a5f15a733d2a389168f4ba7b379c675705c0e713f1c7f87c67
Contents?: true
Size: 607 Bytes
Versions: 17
Compression:
Stored size: 607 Bytes
Contents
<%= render_component(:sidebar, id: "#{current_engine.dom_id}-drawer") do %> <%= render_component(:sidebar_menu) do |menu| menu.with_item(name: "Dashboard", url: root_path, icon: "outline/home") if registered_resources.any? menu.with_item(name: "Resources", icon: "outline/grid") do |sub_menu| registered_resources.each do |resource| next unless allowed_to? :index?, resource sub_menu.with_sub_item(name: resource.model_name.human.pluralize, url: resource_url_for(resource, parent: nil)) end end end end %> <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems