Sha256: 0560a77c4df53fa293948b1d5a9a94eef6c09af1dcda398602c32f83f637c63c
Contents?: true
Size: 583 Bytes
Versions: 15
Compression:
Stored size: 583 Bytes
Contents
<%= render Plutonium::UI::Layout::Sidebar.new 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
15 entries across 15 versions & 1 rubygems