Sha256: a54ade63f0d38086273d38313495c80a398381a517cdb960e1199e3c9cac51cf

Contents?: true

Size: 715 Bytes

Versions: 25

Compression:

Stored size: 715 Bytes

Contents

<% if item.is_a? Avo::Menu::Link %>
  <%= render Avo::Sidebar::LinkComponent.new label: item.name, path: item.path, target: item.target %>
<% end %>
<% if item.is_a? Avo::Menu::Resource %>
  <%= render Avo::Sidebar::LinkComponent.new label: resource.navigation_label, path: helpers.resources_path(resource: resource) %>
<% end %>
<% if item.is_a? Avo::Menu::Dashboard %>
  <%= render Avo::Sidebar::LinkComponent.new label: dashboard.navigation_label, path: dashboard.navigation_path %>
<% 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

25 entries across 25 versions & 1 rubygems

Version Path
avo-2.8.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.7.1.pre.1 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.7.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.6.1.pre.2 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.6.1.pre.1 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.6.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.2.pre.7 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.2.pre.6 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.2.pre.5 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.2.pre.4 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.2.pre.3 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.2.pre.2 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.2.pre.1 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.1 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.5.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.4.1 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.4.0 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.3.1.pre.6 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.3.1.pre.5 app/components/avo/sidebar/item_switcher_component.html.erb
avo-2.3.1.pre.4 app/components/avo/sidebar/item_switcher_component.html.erb