Sha256: e029bc00c192127a5ec7425dc70729408f2233f9c121e37c5d883f09824b9943

Contents?: true

Size: 829 Bytes

Versions: 12

Compression:

Stored size: 829 Bytes

Contents

<% if item.is_a? Avo::Menu::Link %>
  <%= render Avo::Sidebar::LinkComponent.new label: item.name, path: item.path, target: item.target, data: item.data, icon: item.icon %>
<% end %>
<% if item.is_a? Avo::Menu::Resource %>
  <%= render Avo::Sidebar::LinkComponent.new label: item.navigation_label, path: helpers.resources_path(resource: resource, **item.fetch_params), data: item.data, icon: item.icon %>
<% end %>
<% if item.is_a? Avo::Menu::Dashboard %>
  <%= render Avo::Sidebar::LinkComponent.new label: item.navigation_label, path: dashboard.navigation_path, data: item.data, icon: item.icon %>
<% end %>
<% if item.is_a? Avo::Menu::Section %>
  <%= render Avo::Sidebar::SectionComponent.new item: item %>
<% end %>
<% if item.is_a? Avo::Menu::Group %>
  <%= render Avo::Sidebar::GroupComponent.new item: item %>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
avo-2.53.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.52.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.49.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.48.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.47.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.46.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.45.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.44.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.43.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.42.2 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.42.1 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.42.0 app/components/avo/sidebar/item_switcher_component.html.erb